Use ReadonlyArrays in conversation model and redux
This commit is contained in:
parent
ecbf84638d
commit
dec23725e5
55 changed files with 173 additions and 162 deletions
|
@ -36,5 +36,6 @@ export const getSelectedIndex = createSelector(
|
|||
|
||||
export const getMedia = createSelector(
|
||||
getLightboxState,
|
||||
(state): Array<MediaItemType> => (state.isShowingLightbox ? state.media : [])
|
||||
(state): ReadonlyArray<MediaItemType> =>
|
||||
state.isShowingLightbox ? state.media : []
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue