Close story viewer when DOE a story
This commit is contained in:
parent
a88778b536
commit
6a80b4b837
1 changed files with 1 additions and 0 deletions
|
@ -1625,6 +1625,7 @@ export function reducer(
|
||||||
if (action.type === DOE_STORY) {
|
if (action.type === DOE_STORY) {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
|
selectedStoryData: undefined,
|
||||||
stories: state.stories.filter(
|
stories: state.stories.filter(
|
||||||
existingStory => existingStory.messageId !== action.payload
|
existingStory => existingStory.messageId !== action.payload
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue