improvements for folders and parameters (#3918)
Co-authored-by: Jonathan Dobson <jon.m.dobson@gmail.com>
This commit is contained in:
@@ -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"] });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ function useCreateWorkflowMutation() {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["workflows"],
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["folders"],
|
||||
});
|
||||
navigate(`/workflows/${response.data.workflow_permanent_id}/debug`);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user