Add fix for portal update issue (#5381)

This commit is contained in:
Muhsin Keloth
2022-09-02 12:32:07 +05:30
committed by GitHub
parent 403ff1a679
commit b16c5de7ca
5 changed files with 7 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ export const actions = {
}
},
update: async ({ commit }, { portalSlug, portalObj }) => {
update: async ({ commit }, { portalSlug, ...portalObj }) => {
commit(types.SET_HELP_PORTAL_UI_FLAG, {
uiFlags: { isUpdating: true },
portalSlug,
@@ -44,7 +44,7 @@ export const actions = {
try {
const { data } = await portalAPIs.updatePortal({
portalSlug,
params: portalObj,
portalObj,
});
commit(types.UPDATE_PORTAL_ENTRY, data);
} catch (error) {