- {view ? (
-
-
-
-
- ) : (
- {
- if (reactFlowInstance)
- updateFlow({
- ...flow,
- data: reactFlowInstance.toObject(),
- });
- }}
- edges={edges}
- onNodesChange={onNodesChangeMod}
- onEdgesChange={onEdgesChangeMod}
- onConnect={onConnect}
- disableKeyboardA11y={true}
- onLoad={setReactFlowInstance}
- onInit={setReactFlowInstance}
- nodeTypes={nodeTypes}
- onEdgeUpdate={onEdgeUpdate}
- onEdgeUpdateStart={onEdgeUpdateStart}
- onEdgeUpdateEnd={onEdgeUpdateEnd}
- onNodeDragStart={onNodeDragStart}
- onSelectionDragStart={onSelectionDragStart}
- onSelectionEnd={onSelectionEnd}
- onSelectionStart={onSelectionStart}
- onEdgesDelete={onEdgesDelete}
- connectionLineComponent={ConnectionLineComponent}
- onDragOver={onDragOver}
- onDrop={onDrop}
- onNodesDelete={onDelete}
- onSelectionChange={onSelectionChange}
- className="theme-attribution"
- minZoom={0.01}
- maxZoom={8}
- >
-
-
+
+
-
- )}
- {view && (
+ >
+
+ {!view && (
)}
diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx
index 92ebc6775..3555da2fa 100644
--- a/src/frontend/src/pages/FlowPage/index.tsx
+++ b/src/frontend/src/pages/FlowPage/index.tsx
@@ -29,7 +29,7 @@ export default function FlowPage() {
{flows.length > 0 &&
tabId !== "" &&
flows.findIndex((flow) => flow.id === tabId) !== -1 && (
-