mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-03-11 09:02:48 +00:00
Fix events creation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
160e5fbdae
commit
1d75ce095a
1 changed files with 6 additions and 4 deletions
|
@ -703,10 +703,12 @@ export default class EditEvent extends Vue {
|
|||
position: "is-bottom-right",
|
||||
duration: 5000,
|
||||
});
|
||||
await this.$router.push({
|
||||
name: "Event",
|
||||
params: { uuid: data.createEvent.uuid },
|
||||
});
|
||||
if (data?.createEvent) {
|
||||
await this.$router.push({
|
||||
name: "Event",
|
||||
params: { uuid: data.createEvent.uuid },
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
this.saving = false;
|
||||
console.error(err);
|
||||
|
|
Loading…
Add table
Reference in a new issue