fix(frontend): refesh count after nlp sample import

This commit is contained in:
yassinedorbozgithub 2024-10-10 22:12:40 +01:00
parent 5681a810aa
commit 774d99aa94

View File

@ -39,8 +39,8 @@ export const NlpImportDialog: FC<NlpImportDialogProps> = ({
mutationFn: async (attachmentId: string | null) => {
attachmentId && (await apiClient.importNlpSamples(attachmentId));
},
onSuccess: () => {
queryClient.removeQueries({
onSuccess: async () => {
await queryClient.invalidateQueries({
predicate: ({ queryKey }) => {
const [qType, qEntity] = queryKey;