Merge pull request #2352 from automatisch/polish-folders

fix(folders): reset state upon deleting folder and updating flow folder
This commit is contained in:
Ömer Faruk Aydın
2025-02-14 13:40:22 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ export default function Folders() {
const handleDeleteFolderConfirmation = async () => {
await deleteFolder(selectedFolderId);
setShowDeleteFolderDialog(false);
navigate({ search: allFlowsFolder });
};

View File

@@ -14,7 +14,7 @@ export default function useUpdateFlowFolder(flowId) {
},
onSuccess: async () => {
await queryClient.invalidateQueries({
queryKey: ['flows', flowId, 'folder'],
queryKey: ['flows'],
});
},
});