From a8ecab4d794c219301d636594933520c87fd8d75 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Wed, 7 Sep 2022 23:58:52 +0200 Subject: [PATCH] fix: correct maybe missing option in etymology layer --- UI/Wikipedia/WikidataPreviewBox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Wikipedia/WikidataPreviewBox.ts b/UI/Wikipedia/WikidataPreviewBox.ts index 2af1f230d..bd6770164 100644 --- a/UI/Wikipedia/WikidataPreviewBox.ts +++ b/UI/Wikipedia/WikidataPreviewBox.ts @@ -108,7 +108,7 @@ export default class WikidataPreviewBox extends VariableUiElement { link]).SetClass("flex justify-between"), Translation.fromMap(wikidata.descriptions), WikidataPreviewBox.QuickFacts(wikidata, options), - ...(options.extraItems ?? []) + ...(options?.extraItems ?? []) ]).SetClass("flex flex-col link-underline")