From 598994a1f9480cf0eb2b6658b6bac6dcb615d3a4 Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 12:59:50 +0200 Subject: [PATCH] working leantime widget 10 --- components/flow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/flow.tsx b/components/flow.tsx index e6d504a7..c5b30b57 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -13,7 +13,7 @@ interface StatusLabel { statusType: string; class: string; sortKey: number; - kanbanCol: boolean; + kanbanCol: boolean | string; } interface Project { @@ -50,7 +50,7 @@ export function Flow() { } const data = await response.json(); - setProjects(data.projects); + setProjects(data.projects || []); setError(null); } catch (err) { console.error('Error fetching status labels:', err);