From 5ee5288edf7017d6914ea64201bc60b75f9de9a6 Mon Sep 17 00:00:00 2001 From: Michael Albert Date: Tue, 4 May 2021 16:04:26 +0200 Subject: [PATCH] Fix some DOM errors Change-Id: I22a108fd5ce6a344e629e4af0345a0221de44052 --- src/components/RoomDirectory.js | 4 ++-- src/components/rooms.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/RoomDirectory.js b/src/components/RoomDirectory.js index 654c824..63787ee 100644 --- a/src/components/RoomDirectory.js +++ b/src/components/RoomDirectory.js @@ -171,7 +171,7 @@ const RoomDirectoryFilter = ({ ...props }) => { ); }; -export const FilterableRoomDirectoryList = ({ ...props }) => { +export const FilterableRoomDirectoryList = ({ dispatch, ...props }) => { const classes = useStyles(); const translate = useTranslate(); const filter = props.roomDirectoryFilters; @@ -242,7 +242,7 @@ export const FilterableRoomDirectoryList = ({ ...props }) => { function mapStateToProps(state) { return { - roomDirectoryFilters: + roomdirectoryfilters: state.admin.resources.room_directory.list.params.displayedFilters, }; } diff --git a/src/components/rooms.js b/src/components/rooms.js index e89b786..a5d9ba2 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -305,8 +305,8 @@ const RoomFilter = ({ ...props }) => { ); }; -const FilterableRoomList = ({ ...props }) => { - const filter = props.roomFilters; +const FilterableRoomList = ({ roomFilters, dispatch, ...props }) => { + const filter = roomFilters; const localMembersFilter = filter && filter.joined_local_members ? true : false; const stateEventsFilter = filter && filter.state_events ? true : false;