Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes committed Dec 19, 2023
1 parent 49ccca5 commit 288f89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useFlowchartStore } from '@/stores/flowchart';
import { FunctionInstanceData } from '@/types/block';
import { Handle, NodeProps, Position, useUpdateNodeInternals } from 'reactflow';

// TODO: Figure out what to do with instance blocks when the original definition is removed
const FunctionInstanceBlock = ({ id, data }: NodeProps<FunctionInstanceData>) => {
const functionDefinitionBlocks = useFlowchartStore((state) => state.functionDefinitionBlocks);
const defn = functionDefinitionBlocks[data.definition_block_id];
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/stores/flowchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const useFlowchartStore = create<FlowchartState>()(
set({
controls: get().controls.concat([
{
id: uuid,
id: `${data.block_type}-${uuid}`,
type: data.block_type,
position: position,
data: {
Expand Down

0 comments on commit 288f89f

Please sign in to comment.