fix(folders): reset state upon deleting folder and updating flow folder
This commit is contained in:
@@ -65,6 +65,8 @@ export default function Folders() {
|
||||
const handleDeleteFolderConfirmation = async () => {
|
||||
await deleteFolder(selectedFolderId);
|
||||
|
||||
setShowDeleteFolderDialog(false);
|
||||
|
||||
navigate({ search: allFlowsFolder });
|
||||
};
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function useUpdateFlowFolder(flowId) {
|
||||
},
|
||||
onSuccess: async () => {
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: ['flows', flowId, 'folder'],
|
||||
queryKey: ['flows'],
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user