From 1e6ab34a8aa3ef73378f926de2ac99be1da263b7 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 16 Mar 2026 01:39:11 -0400 Subject: [PATCH] fix: cast tree_type to TreeType in session-to-flow creation Fixes build error where string was not assignable to TreeType. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/pages/SessionDetailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/SessionDetailPage.tsx b/frontend/src/pages/SessionDetailPage.tsx index 54932112..635967c8 100644 --- a/frontend/src/pages/SessionDetailPage.tsx +++ b/frontend/src/pages/SessionDetailPage.tsx @@ -259,7 +259,7 @@ export function SessionDetailPage() { const tree = await treesApi.create({ name: flowData.name, description: flowData.description, - tree_type: flowData.tree_type, + tree_type: flowData.tree_type as import('@/types').TreeType, tree_structure: flowData.tree_structure, tags: flowData.tags, })