Skip to content

Commit

Permalink
Fix docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
floo51 committed Mar 22, 2024
1 parent c795c67 commit 62de9e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/admin/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const SubMenuItem = ({ name }: { name: string }) => {
if (!resources || !resources[name]) return null;
return (
<MenuItemLink
onPointerEnterCapture={() => {}}
onPointerLeaveCapture={() => {}}
to={createPath({
resource: name,
type: "list",
Expand Down Expand Up @@ -60,7 +62,7 @@ const CustomMenu = () => {
const [, setSidebarOpen] = useSidebarState();
const { permissions } = usePermissions();
const resources = useResourceDefinitions();

const displayableResources = Object.keys(resources)
.filter((resource) => resources[resource].hasList)
.filter((resource) => permissions?.includes(`${resource}.menu`));
Expand Down Expand Up @@ -114,6 +116,8 @@ const CustomMenu = () => {
{Object.keys(resourcesByMenu).map((menu) => {
return [
<MenuItemLink
onPointerEnterCapture={() => {}}
onPointerLeaveCapture={() => {}}
key={`menu-${menu}`}
primaryText={
<Box
Expand Down

0 comments on commit 62de9e7

Please sign in to comment.