From 841091e917e180a28a32456eec13694b3eeb8cad Mon Sep 17 00:00:00 2001 From: selankon Date: Fri, 8 Nov 2024 20:13:58 +0100 Subject: [PATCH] chore(mesh-config): some bulkfix --- .../src/components/FormFooter.tsx | 2 +- .../src/meshConfigQueries.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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, }); };