Skip to content

Commit

Permalink
Merge pull request #5282 from WANZARGEN/master
Browse files Browse the repository at this point in the history
fix(task-management): remove unnecessary scope from sharedConfigStore call
  • Loading branch information
WANZARGEN authored Dec 20, 2024
2 parents 7b9db79 + 5e209bc commit d5fb2b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const handleUpdateSelectedTaskType = async (items: SelectDropdownMenuItem[]) =>
await taskContentFormStore.setCurrentTaskType(items[0].name); // set current task type to store for other fields
const taskType = taskContentFormState.currentTaskType;
const category = taskContentFormGetters.currentCategory;
if (items.length > 0 && (!category || !taskType)) {
ErrorHandler.handleError(new Error('Failed to get category or task type'));
if (items.length > 0 && !category) {
ErrorHandler.handleError(new Error('Failed to get category'));
return;
}
if (category && taskType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const useTaskFieldMetadataStore = defineStore('task-field-metadata', () =
getters.taskFieldTypeMetadataMap.LABELS,
getters.taskFieldTypeMetadataMap.DROPDOWN,
getters.taskFieldTypeMetadataMap.DATE,
getters.taskFieldTypeMetadataMap.ASSET,
getters.taskFieldTypeMetadataMap.PROJECT,
]),
defaultFields: computed<TaskField[]>(() => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const useTaskManagementTemplateStore = defineStore('task-management-templ
const prev = state.templateId;
state.templateId = templateId;
try {
await sharedConfigStore.set<TemplateData>('TASK_TEMPLATE', { template_id: templateId }, 'DOMAIN');
await sharedConfigStore.set<TemplateData>('TASK_TEMPLATE', { template_id: templateId });
showSuccessMessage(i18n.t('OPSFLOW.ALT_S_EDIT_TARGET', { target: i18n.t('OPSFLOW.TASK_MANAGEMENT.TEMPLATE_TYPE') }), '');
} catch (e) {
ErrorHandler.handleRequestError(e, i18n.t('OPSFLOW.ALT_E_EDIT_TARGET', { target: i18n.t('OPSFLOW.TASK_MANAGEMENT.TEMPLATE_TYPE') }));
Expand Down

0 comments on commit d5fb2b1

Please sign in to comment.