Merge branch '714-refactor-visual-editor-dialogs' into 728-optimize-usedialogs-logic

This commit is contained in:
yassinedorbozgithub 2025-02-10 14:41:42 +01:00
commit 7c52554077
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ const Diagrams = () => {
setSelectedBlockId(undefined);
},
});
const { mutateAsync: updateBlock } = useUpdate(EntityType.BLOCK, {
const { mutate: updateBlock } = useUpdate(EntityType.BLOCK, {
invalidate: false,
});
const debouncedUpdateCategory = useDebouncedUpdate(updateCategory, 300);

View File

@ -31,7 +31,7 @@ export const useDialogs = (): DialogHook => {
const { open, close } = context;
const confirm = React.useCallback<OpenConfirmDialog>(
async (msg, { onClose, ...options } = {}) => {
(msg, { onClose, ...options } = {}) => {
const { count, mode, isSingleton, ...rest } = options;
return open(