mirror of https://github.com/portainer/portainer
fix(table): delete item doesn't refresh the table [BE-11064] (#12060)
parent
ef8e611e0a
commit
a63bd2cea4
|
@ -37,12 +37,7 @@ export function withInvalidate(
|
||||||
return {
|
return {
|
||||||
onSuccess() {
|
onSuccess() {
|
||||||
const promise = Promise.all(
|
const promise = Promise.all(
|
||||||
queryKeysToInvalidate.map((keys) =>
|
queryKeysToInvalidate.map((keys) => queryClient.invalidateQueries(keys))
|
||||||
queryClient.invalidateQueries(keys, {
|
|
||||||
refetchActive: false,
|
|
||||||
refetchInactive: false,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
return skipRefresh
|
return skipRefresh
|
||||||
? undefined // don't wait for queries to refresh before setting state to success
|
? undefined // don't wait for queries to refresh before setting state to success
|
||||||
|
|
Loading…
Reference in New Issue