From bbfdab53dd627607135d68800e9297108e656a21 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 22 May 2025 15:22:09 +0800 Subject: [PATCH] fix: clear vars timing wrong --- web/app/components/workflow/hooks/use-inspect-vars-crud.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts index a929defaf1..969fcb366e 100644 --- a/web/app/components/workflow/hooks/use-inspect-vars-crud.ts +++ b/web/app/components/workflow/hooks/use-inspect-vars-crud.ts @@ -40,7 +40,7 @@ const useInspectVarsCrud = () => { const { data: systemVars } = useSysVarValues(appId) const invalidateSysVarValues = useInvalidateSysVarValues(appId) - const { mutate: doDeleteAllInspectorVars } = useDeleteAllInspectorVars(appId) + const { mutateAsync: doDeleteAllInspectorVars } = useDeleteAllInspectorVars(appId) const { mutate: doDeleteNodeInspectorVars } = useDeleteNodeInspectorVars(appId) const { mutate: doDeleteInspectVar } = useDeleteInspectVar(appId)