Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Chrastina committed Jul 20, 2023
1 parent 9af29f6 commit ca9550f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/shared/ui/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { NextRouter, useRouter } from "next/router";
import { FC, useState } from "react";

import { mainColorBgClass } from "../../../lib/constants/colors";
import { externalPreviewUrlsMapping } from "../../../lib/constants/menu";
import { createItemSmartLink } from "../../../lib/utils/smartLinkUtils";
import { Block_Navigation, contentTypes } from "../../../models";
import { useSiteCodename } from "../siteCodenameContext";
import { externalPreviewUrlsMapping } from "../../../lib/constants/menu";

type Link = Readonly<Block_Navigation>;

Expand All @@ -31,7 +31,7 @@ const isCurrentNavigationItemActive = (navigation: Block_Navigation, router: Nex
const pathSegments = pathWithoutQuerystring.split("/");
const topLevelSegment = pathSegments[1];
const pageLink = navigation.elements.pageLink.linkedItems[0];
return (pageLink?.system.codename === contentTypes.page.codename && pageLink?.elements.url.value === topLevelSegment);
return (pageLink?.system.codename === contentTypes.page.codename && pageLink.elements.url.value === topLevelSegment);
};

const resolveLink = (link: Readonly<Block_Navigation>) => {
Expand Down

0 comments on commit ca9550f

Please sign in to comment.