mirror of
https://github.com/lingble/chatwoot.git
synced 2026-01-08 13:31:36 +00:00
fix: Could not able to create label (#4161)
* fixes: Could not able to create label * review fixes Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -45,7 +45,8 @@ export const actions = {
|
||||
const response = await LabelsAPI.create(cannedObj);
|
||||
commit(types.ADD_LABEL, response.data);
|
||||
} catch (error) {
|
||||
throw new Error(error);
|
||||
const errorMessage = error?.response?.data?.message;
|
||||
throw new Error(errorMessage);
|
||||
} finally {
|
||||
commit(types.SET_LABEL_UI_FLAG, { isCreating: false });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user