From 4a3d768aa1ca65614f37c24110e4565a61eb1048 Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Wed, 17 Jan 2024 00:24:57 +0100 Subject: [PATCH] Fix column header value on view change issue --- frontend/src/lib/components/project/Column.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/lib/components/project/Column.svelte b/frontend/src/lib/components/project/Column.svelte index 8a535e1..26b1c19 100644 --- a/frontend/src/lib/components/project/Column.svelte +++ b/frontend/src/lib/components/project/Column.svelte @@ -15,6 +15,10 @@ let newOptionValue = option?.value || `No ${primaryTag?.title}`; + $: if (!option) { + newOptionValue = `No ${primaryTag?.title}`; + } + async function onDrop(e: DragEvent) { e.preventDefault(); if (!primaryTag || !$currentDraggedCard || !$currentDraggedCard.cardTags) return;