diff --git a/frontend/src/components/visual-editor/v2/Diagrams.tsx b/frontend/src/components/visual-editor/v2/Diagrams.tsx index 6cfa7d80..41a6c81d 100644 --- a/frontend/src/components/visual-editor/v2/Diagrams.tsx +++ b/frontend/src/components/visual-editor/v2/Diagrams.tsx @@ -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); diff --git a/frontend/src/hooks/useDialogs.ts b/frontend/src/hooks/useDialogs.ts index c1b1ce74..1134e14e 100644 --- a/frontend/src/hooks/useDialogs.ts +++ b/frontend/src/hooks/useDialogs.ts @@ -31,7 +31,7 @@ export const useDialogs = (): DialogHook => { const { open, close } = context; const confirm = React.useCallback( - async (msg, { onClose, ...options } = {}) => { + (msg, { onClose, ...options } = {}) => { const { count, mode, isSingleton, ...rest } = options; return open(