fix: Add improvements to the Help Center module (#6081)

This commit is contained in:
Sivin Varghese
2022-12-17 01:11:55 +05:30
committed by GitHub
parent 9106f6278d
commit 82d3398932
7 changed files with 34 additions and 24 deletions

View File

@@ -41,11 +41,11 @@ export const actions = {
portalSlug,
articleObj,
});
const { id: articleId, portal } = payload;
const { id: articleId } = payload;
commit(types.ADD_ARTICLE, payload);
commit(types.ADD_ARTICLE_ID, articleId);
commit(types.ADD_ARTICLE_FLAG, articleId);
dispatch('portals/updatePortal', portal, { root: true });
dispatch('portals/updatePortal', portalSlug, { root: true });
return articleId;
} catch (error) {
return throwErrorMessage(error);