From 1f2d298419ffd182ddff37b0e15a14f6386317be Mon Sep 17 00:00:00 2001 From: Pouzor Date: Tue, 30 Jun 2026 00:58:42 +0200 Subject: [PATCH] fix: type standalone canvas theme_id as ThemeId The Docker CI build (tsc -b, stricter than the local tsc --noEmit) rejected passing the storage theme_id (string) to setTheme/setCustomStyle which expect ThemeId. Type StandaloneCanvas.theme_id as ThemeId so the standalone load path matches the theme store API. ha-relevant: no --- frontend/src/utils/standaloneStorage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/standaloneStorage.ts b/frontend/src/utils/standaloneStorage.ts index c8245d2..f5f2506 100644 --- a/frontend/src/utils/standaloneStorage.ts +++ b/frontend/src/utils/standaloneStorage.ts @@ -12,6 +12,7 @@ */ import type { Node, Edge } from '@xyflow/react' import type { Design, DesignType, NodeData, EdgeData, CustomStyleDef } from '@/types' +import type { ThemeId } from '@/utils/themes' import { generateUUID } from '@/utils/uuid' const DESIGNS_KEY = 'homelable_designs' @@ -21,7 +22,7 @@ const canvasKey = (designId: string) => `${LEGACY_CANVAS_KEY}:${designId}` export interface StandaloneCanvas { nodes: Node[] edges: Edge[] - theme_id?: string + theme_id?: ThemeId custom_style?: CustomStyleDef | null }