working leantime widget 10

This commit is contained in:
Alma 2025-04-12 12:59:50 +02:00
parent af09f37458
commit 598994a1f9

View File

@ -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);