mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-09 00:04:50 +00:00
Fix broken RoomDirectoryFilter (#155)
This commit is contained in:
parent
985673b161
commit
e3d5d51342
1 changed files with 7 additions and 3 deletions
|
@ -171,10 +171,14 @@ const RoomDirectoryFilter = ({ ...props }) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const FilterableRoomDirectoryList = ({ dispatch, ...props }) => {
|
export const FilterableRoomDirectoryList = ({
|
||||||
|
roomDirectoryFilters,
|
||||||
|
dispatch,
|
||||||
|
...props
|
||||||
|
}) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const translate = useTranslate();
|
const translate = useTranslate();
|
||||||
const filter = props.roomDirectoryFilters;
|
const filter = roomDirectoryFilters;
|
||||||
const roomIdFilter = filter && filter.room_id ? true : false;
|
const roomIdFilter = filter && filter.room_id ? true : false;
|
||||||
const topicFilter = filter && filter.topic ? true : false;
|
const topicFilter = filter && filter.topic ? true : false;
|
||||||
const canonicalAliasFilter = filter && filter.canonical_alias ? true : false;
|
const canonicalAliasFilter = filter && filter.canonical_alias ? true : false;
|
||||||
|
@ -242,7 +246,7 @@ export const FilterableRoomDirectoryList = ({ dispatch, ...props }) => {
|
||||||
|
|
||||||
function mapStateToProps(state) {
|
function mapStateToProps(state) {
|
||||||
return {
|
return {
|
||||||
roomdirectoryfilters:
|
roomDirectoryFilters:
|
||||||
state.admin.resources.room_directory.list.params.displayedFilters,
|
state.admin.resources.room_directory.list.params.displayedFilters,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue