Update selectedStoryData whenever its story changes
This commit is contained in:
parent
58aaf1d0e7
commit
c3bb3b152e
5 changed files with 53 additions and 19 deletions
|
@ -25,7 +25,7 @@ import {
|
|||
getMenuOptions,
|
||||
} from '../selectors/user';
|
||||
import {
|
||||
getSelectedStoryData,
|
||||
hasSelectedStoryData,
|
||||
shouldShowStoriesView,
|
||||
} from '../selectors/stories';
|
||||
import { getHideMenuBar } from '../selectors/items';
|
||||
|
@ -65,7 +65,7 @@ const mapStateToProps = (state: StateType) => {
|
|||
<SmartStories />
|
||||
</ErrorBoundary>
|
||||
),
|
||||
selectedStoryData: getSelectedStoryData(state),
|
||||
hasSelectedStoryData: hasSelectedStoryData(state),
|
||||
renderStoryViewer: () => (
|
||||
<ErrorBoundary>
|
||||
<SmartStoryViewer />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue