From d0f14871070b7571cf06126fb9fd496d1b6d4069 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Mon, 18 Apr 2022 10:23:13 -0700 Subject: [PATCH] fix filter link --- components/common/FilterLink.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/common/FilterLink.js b/components/common/FilterLink.js index 459a8ae1..8520b663 100644 --- a/components/common/FilterLink.js +++ b/components/common/FilterLink.js @@ -21,7 +21,9 @@ export default function FilterLink({ id, value, label, externalUrl }) { [styles.active]: active && selected, })} > - {safeDecodeURI(label || value)} + {(label && typeof label === 'string') ?? value + ? safeDecodeURI(label || value) + : label || value} {externalUrl && (