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) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-16 01:39:11 -04:00
parent d70f097d89
commit 1e6ab34a8a

View File

@@ -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,
})