mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Fix ‘this is undefined’ error
This commit is contained in:
@@ -532,7 +532,7 @@ export default {
|
||||
},
|
||||
|
||||
async saveEvent (event) {
|
||||
function callback (err, res) {
|
||||
const callback = (err, res) => {
|
||||
if (!err && res.ok) {
|
||||
this.showSnack(["New event saved", "success"]);
|
||||
this.queuedReload = true;
|
||||
|
||||
Reference in New Issue
Block a user