mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): refesh count after nlp sample import
This commit is contained in:
parent
5681a810aa
commit
774d99aa94
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user