diff --git a/src/store.ts b/src/store.ts index 166f625..6212432 100644 --- a/src/store.ts +++ b/src/store.ts @@ -44,10 +44,10 @@ export const useScheduleStore = defineStore({ async addJobType(name: string) { try { const { data } = await api.post('/events/job-types', { name: name }); - this.jobTypes.push(data) + this.jobTypes.push(data); } catch (error) { // TODO: HANDLE ERROR - throw error + throw error; } },