Remove cached queries on editing server

This commit is contained in:
Kendall Garner 2025-09-28 19:10:47 -07:00
parent 8caf898172
commit eb0ccec0bc
No known key found for this signature in database
GPG key ID: 9355F387FE765C94

View file

@ -7,7 +7,6 @@ import { useTranslation } from 'react-i18next';
import i18n from '/@/i18n/i18n';
import { api } from '/@/renderer/api';
import { queryKeys } from '/@/renderer/api/query-keys';
import { queryClient } from '/@/renderer/lib/react-query';
import { useAuthStoreActions } from '/@/renderer/store';
import { Button } from '/@/shared/components/button/button';
@ -118,7 +117,7 @@ export const EditServerForm = ({ isUpdate, onCancel, password, server }: EditSer
}
}
queryClient.invalidateQueries({ queryKey: queryKeys.server.root(server.id) });
queryClient.removeQueries();
} catch (err: any) {
setIsLoading(false);
return toast.error({ message: err?.message });