Skip to content

Commit

Permalink
fix: Organisation ID is an object calling useHasPermission at organis…
Browse files Browse the repository at this point in the history
…ation level (#3950)
  • Loading branch information
novakzaballa committed May 15, 2024
1 parent bf67b1d commit 1372917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/web/components/BreadcrumbSeparator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const BreadcrumbSeparator: FC<BreadcrumbSeparatorType> = ({
}
const [hoveredSection, setHoveredSection] = useState(focus)
const { permission: canCreateProject } = useHasPermission({
id: hoveredOrganisation,
id: hoveredOrganisation?.id,
level: 'organisation',
permission: Utils.getCreateProjectPermission(hoveredOrganisation),
})
Expand Down

0 comments on commit 1372917

Please sign in to comment.