From 110a6b548d10395bbec44b93383f41f172d7e1a6 Mon Sep 17 00:00:00 2001 From: lyc8503 Date: Wed, 22 Nov 2023 16:00:04 +0800 Subject: [PATCH] fix: compilation error when not setting highlight --- components/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Header.tsx b/components/Header.tsx index 408a809..a1c3d51 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -42,7 +42,7 @@ export default function Header() { - {config.page.links.filter((link) => link.highlight).map(linkToElement)} + {config.page.links.filter((link) => (link as any).highlight).map(linkToElement)}