Skip to content

Commit

Permalink
🔖 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Jan 2, 2024
1 parent 5b73162 commit ff52cac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assistantapps-admin-v2",
"version": "0.0.9",
"version": "0.0.10",
"description": "",
"scripts": {
"start": "vite",
Expand All @@ -10,7 +10,7 @@
},
"license": "MIT",
"dependencies": {
"@assistantapps/assistantapps.api.client": "^0.0.19",
"@assistantapps/assistantapps.api.client": "^0.0.20",
"dayjs": "^1.11.7",
"dotenv": "^16.0.3",
"jose": "^4.13.1",
Expand All @@ -31,4 +31,4 @@
"vite": "^4.1.1",
"vite-plugin-solid": "^2.5.0"
}
}
}
2 changes: 1 addition & 1 deletion src/components/common/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Sidebar: Component = () => {

<For each={menuItems}>
{(menuItem) => (
<Show when={permissions().includes(menuItem.requiredPerm)}>
<Show when={(Array.isArray(permissions()) ? permissions() : []).includes(menuItem.requiredPerm)}>
<SidebarNavLink
href={menuItem.route}
opacity={menuItem.disabled === true ? 0.25 : 1}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const DashboardPage: Component = () => {
title: 'Permissions error',
description: 'There was an error fetching your permissions, please try logging in again',
onConfirm: () => navigate(routes.login, { replace: true }),
})
});
} else {
setPermissions(perms.value);
}
Expand Down

0 comments on commit ff52cac

Please sign in to comment.