From e3d5d51342d7aba8557882f80f94719d02f926ef Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 15 Jun 2021 11:03:03 +0200 Subject: [PATCH] Fix broken RoomDirectoryFilter (#155) --- src/components/RoomDirectory.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/RoomDirectory.js b/src/components/RoomDirectory.js index 63787ee..d8d0469 100644 --- a/src/components/RoomDirectory.js +++ b/src/components/RoomDirectory.js @@ -171,10 +171,14 @@ const RoomDirectoryFilter = ({ ...props }) => { ); }; -export const FilterableRoomDirectoryList = ({ dispatch, ...props }) => { +export const FilterableRoomDirectoryList = ({ + roomDirectoryFilters, + dispatch, + ...props +}) => { const classes = useStyles(); const translate = useTranslate(); - const filter = props.roomDirectoryFilters; + const filter = roomDirectoryFilters; const roomIdFilter = filter && filter.room_id ? true : false; const topicFilter = filter && filter.topic ? true : false; const canonicalAliasFilter = filter && filter.canonical_alias ? true : false; @@ -242,7 +246,7 @@ export const FilterableRoomDirectoryList = ({ dispatch, ...props }) => { function mapStateToProps(state) { return { - roomdirectoryfilters: + roomDirectoryFilters: state.admin.resources.room_directory.list.params.displayedFilters, }; }