Skip to content

Commit

Permalink
fix: update error handling for task type selection and remove unused …
Browse files Browse the repository at this point in the history
…metadata

Signed-off-by: Wanjin Noh <[email protected]>
  • Loading branch information
WANZARGEN committed Dec 20, 2024
1 parent 8dc95de commit 5e209bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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

0 comments on commit 5e209bc

Please sign in to comment.