mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: add error handling to updateBlocks
This commit is contained in:
parent
0082030770
commit
79f866e406
@ -548,9 +548,14 @@ const Diagrams = () => {
|
||||
},
|
||||
});
|
||||
|
||||
onCategoryChange(
|
||||
categories.findIndex(({ id }) => id === targetCategoryId),
|
||||
const targetCategoryIndex = categories.findIndex(
|
||||
({ id }) => id === targetCategoryId,
|
||||
);
|
||||
|
||||
onCategoryChange(targetCategoryIndex);
|
||||
},
|
||||
onError: () => {
|
||||
toast.error(t("message.move_block_error"));
|
||||
},
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user