diff --git a/plugins/lime-plugin-mesh-wide-config/src/components/FormFooter.tsx b/plugins/lime-plugin-mesh-wide-config/src/components/FormFooter.tsx
index 94af5d56..81e00f2f 100644
--- a/plugins/lime-plugin-mesh-wide-config/src/components/FormFooter.tsx
+++ b/plugins/lime-plugin-mesh-wide-config/src/components/FormFooter.tsx
@@ -22,10 +22,10 @@ export const FormFooter = ({
});
},
onSuccess: () => {
+ onClose();
showToast({
text: Starting mesh wide configuration change,
});
- onClose();
},
});
const onSubmit = (data: IMeshWideConfig) => {
diff --git a/plugins/lime-plugin-mesh-wide-config/src/meshConfigQueries.tsx b/plugins/lime-plugin-mesh-wide-config/src/meshConfigQueries.tsx
index f26d6bb3..f4afb82c 100644
--- a/plugins/lime-plugin-mesh-wide-config/src/meshConfigQueries.tsx
+++ b/plugins/lime-plugin-mesh-wide-config/src/meshConfigQueries.tsx
@@ -73,11 +73,10 @@ export const useSetCommunityConfig = (
SetCommunityConfigParams
>({
mutationKey: MeshConfigQueryKeys.setCommunityConfig,
- mutationFn: (args) => {
- return standarizedApiCall({
- args: [...MeshConfigQueryKeys.setCommunityConfig, {}],
- });
- },
+ mutationFn: (args) =>
+ standarizedApiCall({
+ args: [...MeshConfigQueryKeys.setCommunityConfig, args],
+ }),
...params,
});
};