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!,
|
data.node!,
|
||||||
handleNodeClass,
|
handleNodeClass,
|
||||||
postToolModeValue,
|
postToolModeValue,
|
||||||
setNoticeData,
|
setErrorData,
|
||||||
"tool_mode",
|
"tool_mode",
|
||||||
);
|
);
|
||||||
updateNodeInternals(data.id);
|
updateNodeInternals(data.id);
|
||||||
|
|
@ -222,6 +222,7 @@ export default function NodeToolbarComponent({
|
||||||
|
|
||||||
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
||||||
const setNoticeData = useAlertStore((state) => state.setNoticeData);
|
const setNoticeData = useAlertStore((state) => state.setNoticeData);
|
||||||
|
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setFlowComponent(createFlowComponent(cloneDeep(data), version));
|
setFlowComponent(createFlowComponent(cloneDeep(data), version));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue