Skip to content

Commit

Permalink
Correct error, support no editing node in new node-editor.tsx state call
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaCWebDeveloper committed Jun 5, 2024
1 parent 7ec1409 commit a168f32
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ export const NodeEditor = ({}: NodeEditorProps) => {
selectFlowNodeById(state, editing?.id ?? '')
) as FlowNodeEntity;
const editingNodeEntity = useAppSelector(state =>
flowLogic.node.selectPaletteNodeByFlowNode(state, editingNode)
editingNode
? flowLogic.node.selectPaletteNodeByFlowNode(state, editingNode)
: null
);
const { propertiesForm } =
useAppSelector(flowLogic.node.editor.selectEditorState) ?? {};
Expand Down

0 comments on commit a168f32

Please sign in to comment.