From f51756be495cd2d14a9ec68eab741eee93a578c3 Mon Sep 17 00:00:00 2001 From: workashrafi77-web Date: Sun, 1 Feb 2026 15:03:02 +0330 Subject: [PATCH] remove: log from create guilds --- .../components/create-guilds/CreateGuilds.js | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/features/province/components/create-guilds/CreateGuilds.js b/src/features/province/components/create-guilds/CreateGuilds.js index 2ba4e68..7c3e131 100644 --- a/src/features/province/components/create-guilds/CreateGuilds.js +++ b/src/features/province/components/create-guilds/CreateGuilds.js @@ -131,22 +131,21 @@ export const CreateGuilds = ({ guild, updateTable }) => { ); }); - console.log(guildsDataArray); - // dispatch(updateGuildByNationalIdNewService(guildsDataArray)).then( - // (result) => { - // if (result.payload.error) { - // handleSubmitError(openNotif, result.payload.error); - // } else { - // handleSubmitSuccess( - // dispatch, - // openNotif, - // updateTable, - // values, - // result.payload?.data - // ); - // } - // } - // ); + dispatch(updateGuildByNationalIdNewService(guildsDataArray)).then( + (result) => { + if (result.payload.error) { + handleSubmitError(openNotif, result.payload.error); + } else { + handleSubmitSuccess( + dispatch, + openNotif, + updateTable, + values, + result.payload?.data + ); + } + } + ); }, });