Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Apr 15, 2024
1 parent d22ba25 commit 963d7b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/views/@layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export default function Layout() {
}
}

const hillaIsInRole = hillaConfig.rolesAllowed.every(role =>
state.user?.authorities.includes(role))
const flowIsInRole = state.user?.authorities.includes(
const hillaIsInRole = hillaConfig.rolesAllowed?.every(role =>
state.user?.authorities?.includes(role))
const flowIsInRole = state.user?.authorities?.includes(
'ROLE_ADMIN');

return (
Expand Down

0 comments on commit 963d7b4

Please sign in to comment.