Skip to content

Commit d44dc17

Browse files
authored
Merge pull request #124 from FlowTestAI/bug-fixes
fix: zustand store should correctly reflect updates in graph
2 parents 3e387af + 7e80682 commit d44dc17

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/molecules/flow/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const Flow = ({ tab, collectionId }) => {
243243
>
244244
<Background variant='dots' gap={12} size={1} />
245245
<Controls
246-
className='flex border-cyan-900 shadow-none'
246+
className='flex shadow-none border-cyan-900'
247247
onFitView={() => setViewport(reactFlowInstance.getViewport())}
248248
></Controls>
249249
<Button

src/components/molecules/flow/nodes/NestedFlowNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const NestedFlowNode = ({ id, data }) => {
6363
}}
6464
name='flow'
6565
value={data.relativePath ? data.relativePath : ''}
66-
className='h-12 max-w-48 cursor-default rounded border border-cyan-950 bg-background-light p-2 outline-none'
66+
className='h-12 p-2 border rounded outline-none cursor-default max-w-48 border-cyan-950 bg-background-light'
6767
>
6868
<option key='None' value=''>
6969
Select a flow

src/stores/CanvasStore.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ const useCanvasStore = create((set, get) => ({
347347
return node;
348348
}),
349349
});
350+
useTabStore.getState().updateFlowTestNodes(get().nodes);
350351
},
351352
unSetOutputNode: (nodeId) => {
352353
set({
@@ -362,6 +363,7 @@ const useCanvasStore = create((set, get) => ({
362363
return node;
363364
}),
364365
});
366+
useTabStore.getState().updateFlowTestNodes(get().nodes);
365367
},
366368
setFlowForComplexNode: (nodeId, relativePath) => {
367369
set({
@@ -377,6 +379,7 @@ const useCanvasStore = create((set, get) => ({
377379
return node;
378380
}),
379381
});
382+
useTabStore.getState().updateFlowTestNodes(get().nodes);
380383
},
381384
setVariableNodeName: (nodeId, name) => {
382385
set({

0 commit comments

Comments
 (0)