From 55d8d89d5c215b87162650fe2175b3ac25a300a8 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 10 Feb 2025 14:40:30 +0100 Subject: [PATCH] fix: apply feedback updates --- frontend/src/components/visual-editor/v2/Diagrams.tsx | 2 +- frontend/src/hooks/useDialogs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(