fix: resolve TypeScript errors in migrated components

This commit is contained in:
Jason Woltje
2026-01-29 22:00:14 -06:00
parent d54714ea06
commit abbf886483
36 changed files with 758 additions and 43 deletions

View File

@@ -249,8 +249,10 @@ export function ReactFlowEditor({
<ReactFlow
nodes={nodes}
edges={edges}
onNodesChange={readOnly ? undefined : onNodesChange}
onEdgesChange={readOnly ? undefined : onEdgesChange}
{...(!readOnly && {
onNodesChange,
onEdgesChange,
})}
onConnect={onConnect}
onNodeClick={onNodeClick}
onPaneClick={onPaneClick}