From 32c4a4884768a8f12acc10afcb59747413df5be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 18 Jun 2024 16:58:42 +0200 Subject: [PATCH] Not using object type as default prop --- packages/frontend/src/components/ArticleBox.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/ArticleBox.tsx b/packages/frontend/src/components/ArticleBox.tsx index 4baa2bd4b..bab87b554 100644 --- a/packages/frontend/src/components/ArticleBox.tsx +++ b/packages/frontend/src/components/ArticleBox.tsx @@ -7,6 +7,8 @@ import remarkGfm from "remark-gfm"; import { ColoredTag } from "./ColoredTag"; import { Article, H2, Paragraph } from "./Typography"; +const emptyArray: Array = []; + export const ArticleBox = ({ title, link = undefined, @@ -14,7 +16,7 @@ export const ArticleBox = ({ subtitleLink = undefined, subtitleDescription = undefined, description, - tags = [], + tags = emptyArray, }: { readonly title: string; readonly link?: string;