change(ui): spot menu item handle collapse

This commit is contained in:
Shekar Siri 2025-02-17 17:59:23 +01:00
parent ecdb98b057
commit 2144a90ea7

View file

@ -44,7 +44,7 @@ function SideMenu(props: Props) {
const isPreferencesActive = location.pathname.includes('/client/');
const [supportOpen, setSupportOpen] = React.useState(false);
const { searchStore, projectsStore, userStore } = useStore();
const spotOnly = true; //userStore.scopeState === 1;
const spotOnly = userStore.scopeState === 1;
const account = userStore.account;
const modules = account.settings?.modules ?? [];
const isAdmin = account.admin || account.superAdmin;