diff --git a/src/components/High/Layout.tsx b/src/components/High/Layout.tsx index fefe4fb6..c29d62c4 100644 --- a/src/components/High/Layout.tsx +++ b/src/components/High/Layout.tsx @@ -1,3 +1,4 @@ +import useEntities from "@/hooks/useEntities"; import { EntityWithRoles } from "@/interfaces/entity"; import {User} from "@/interfaces/user"; import clsx from "clsx"; @@ -20,7 +21,6 @@ interface Props { export default function Layout({ user, - entities = [], children, className, bgColor="bg-white", @@ -30,6 +30,7 @@ export default function Layout({ onFocusLayerMouseEnter }: Props) { const router = useRouter(); + const {entities} = useEntities() return (