mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(wizard): migrate to react [EE-2305] (#6957)
This commit is contained in:
parent
3aacaa7caf
commit
01dc9066b7
125 changed files with 2994 additions and 1744 deletions
|
@ -33,8 +33,8 @@ export function withInvalidate(
|
|||
) {
|
||||
return {
|
||||
onSuccess() {
|
||||
return queryKeysToInvalidate.map((keys) =>
|
||||
queryClient.invalidateQueries(keys)
|
||||
return Promise.all(
|
||||
queryKeysToInvalidate.map((keys) => queryClient.invalidateQueries(keys))
|
||||
);
|
||||
},
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ export function queryOptions<
|
|||
return mergeOptions(options);
|
||||
}
|
||||
|
||||
function mergeOptions<T>(...options: T[]) {
|
||||
function mergeOptions<T>(options: T[]) {
|
||||
return options.reduce(
|
||||
(acc, option) => ({
|
||||
...acc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue