improvements for folders and parameters (#3918)

Co-authored-by: Jonathan Dobson <jon.m.dobson@gmail.com>
This commit is contained in:
Celal Zamanoglu
2025-11-06 20:09:26 +03:00
committed by GitHub
parent d104135025
commit dea70f2782
10 changed files with 106 additions and 13 deletions

View File

@@ -57,8 +57,9 @@ export function useActiveImportsPolling() {
description: `Successfully imported ${prevImport.title || "workflow"}`,
});
// Refresh workflows to show new workflow
// Refresh workflows and folders to show new workflow and update folder counts
queryClient.invalidateQueries({ queryKey: ["workflows"] });
queryClient.invalidateQueries({ queryKey: ["folders"] });
}
});

View File

@@ -29,6 +29,9 @@ function useCreateWorkflowMutation() {
queryClient.invalidateQueries({
queryKey: ["workflows"],
});
queryClient.invalidateQueries({
queryKey: ["folders"],
});
navigate(`/workflows/${response.data.workflow_permanent_id}/debug`);
},
});