Fix events creation

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-11 15:08:53 +02:00
parent 160e5fbdae
commit 1d75ce095a
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -703,10 +703,12 @@ export default class EditEvent extends Vue {
position: "is-bottom-right", position: "is-bottom-right",
duration: 5000, duration: 5000,
}); });
await this.$router.push({ if (data?.createEvent) {
name: "Event", await this.$router.push({
params: { uuid: data.createEvent.uuid }, name: "Event",
}); params: { uuid: data.createEvent.uuid },
});
}
} catch (err) { } catch (err) {
this.saving = false; this.saving = false;
console.error(err); console.error(err);