feat: Set up store for teams (#1689)

This commit is contained in:
Nithin David Thomas
2021-03-15 18:35:56 +05:30
committed by GitHub
parent cadb246eaa
commit 941d4219f0
26 changed files with 1168 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ export const actions = {
commit(SET_TEAM_UI_FLAG, { isUpdating: true });
try {
const response = await TeamsAPI.update(id, updateObj);
commit(EDIT_TEAM, response.data.payload);
commit(EDIT_TEAM, response.data);
} catch (error) {
throw new Error(error);
} finally {