fix viewport

This commit is contained in:
2026-03-27 19:59:13 -07:00
parent 4835ec7a5f
commit 31214bf26c
9 changed files with 547 additions and 204 deletions

View File

@@ -1,4 +1,5 @@
import { sortNodesForParentOrder } from './nodeHierarchy.js';
import { sanitizeRuntimeValuesForPersistence } from './runtimeValuePersistence.js';
function mergeDefinition(nodeData, defs) {
const savedData = nodeData || {};
@@ -52,7 +53,10 @@ export function hydrateWorkflowState(data, defs = {}) {
...node.data,
label: node.data?.label || node.data?.className || 'Node',
widgetValues: sanitizeWidgetValues(node.data?.widgetValues, definition),
runtimeValues: node.data?.runtimeValues || {},
runtimeValues: sanitizeRuntimeValuesForPersistence(
node.data?.className,
node.data?.runtimeValues,
),
...(node.data?.extraData || {}),
definition,
previewImage: null,