Space Panel use SettingsStore instead of SpaceStore as source of truth (#7404)
This commit is contained in:
parent
63e69d9fa8
commit
6761ef9540
2 changed files with 6 additions and 5 deletions
|
@ -97,9 +97,7 @@ export const HomeButtonContextMenu = ({
|
|||
hideHeader,
|
||||
...props
|
||||
}: ComponentProps<typeof SpaceContextMenu>) => {
|
||||
const allRoomsInHome = useEventEmitterState(SpaceStore.instance, UPDATE_HOME_BEHAVIOUR, () => {
|
||||
return SpaceStore.instance.allRoomsInHome;
|
||||
});
|
||||
const allRoomsInHome = useSettingValue<boolean>("Spaces.allRoomsInHome");
|
||||
|
||||
return <IconizedContextMenu
|
||||
{...props}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue