fix: Update NodeToolbarComponent to use setErrorData instead of setNoticeData (#4892)
Refactor: Update NodeToolbarComponent to use setErrorData instead of setNoticeData
This commit is contained in:
parent
712a43958c
commit
29e5ddc0f6
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ export default function NodeToolbarComponent({
|
|||
data.node!,
|
||||
handleNodeClass,
|
||||
postToolModeValue,
|
||||
setNoticeData,
|
||||
setErrorData,
|
||||
"tool_mode",
|
||||
);
|
||||
updateNodeInternals(data.id);
|
||||
|
|
@ -222,6 +222,7 @@ export default function NodeToolbarComponent({
|
|||
|
||||
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
||||
const setNoticeData = useAlertStore((state) => state.setNoticeData);
|
||||
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||
|
||||
useEffect(() => {
|
||||
setFlowComponent(createFlowComponent(cloneDeep(data), version));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue