diff options
author | Wolfgang Müller | 2025-02-26 16:50:05 +0100 |
---|---|---|
committer | Wolfgang Müller | 2025-02-26 17:38:53 +0100 |
commit | 9a141a11ed6b8de153b7d6eac1661c23a2f153fe (patch) | |
tree | fc042582970671fda99af4434016dbff77894b0d /frontend/src/lib/Utils.ts | |
parent | bcae21a8dee949303749d81052a154be5e7daf01 (diff) | |
download | hircine-9a141a11ed6b8de153b7d6eac1661c23a2f153fe.tar.gz |
frontend: Use joinText in TagPill
We basically already had a function that does what we need here, so
there's no need to reimplement it just for TagPill.
Diffstat (limited to '')
-rw-r--r-- | frontend/src/lib/Utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/Utils.ts b/frontend/src/lib/Utils.ts index c0e5b6c..df7dad8 100644 --- a/frontend/src/lib/Utils.ts +++ b/frontend/src/lib/Utils.ts @@ -93,7 +93,7 @@ export function formatListSize(word: string, size: number) { return `${size} ${pluralize(word, size)}`; } -export function joinText(items: string[], separator = ', ') { +export function joinText(items: (string | undefined | null)[], separator = ', ') { return items.filter((i) => i).join(separator); } |