fix: Update NodeToolbarComponent to use setErrorData instead of setNoticeData (#4892)

Refactor: Update NodeToolbarComponent to use setErrorData instead of setNoticeData
This commit is contained in:
anovazzi1 2024-11-28 11:30:07 -03:00 committed by GitHub
commit 29e5ddc0f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));