Fix some DOM errors

Change-Id: I22a108fd5ce6a344e629e4af0345a0221de44052
This commit is contained in:
Michael Albert 2021-05-04 16:04:26 +02:00
parent a5528d9fe7
commit 5ee5288edf
2 changed files with 4 additions and 4 deletions

View File

@ -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,
};
}

View File

@ -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;