Bugfixing a refaktoring
This commit is contained in:
@@ -26,6 +26,7 @@ export const useEventsStore = defineStore('Events', {
|
||||
this.isMutationRunning = true;
|
||||
return apolloWrapper.mutate(CREATE_EVENT, {input: formData}).then(({data}) => {
|
||||
const event = data.createEvent;
|
||||
event.flights = event.flights || [];
|
||||
this.items.push(event);
|
||||
return event;
|
||||
}).finally(() => this.isMutationRunning = false);
|
||||
|
||||
Reference in New Issue
Block a user