mirror of https://github.com/statping/statping
added try catch on create and edit downtime
parent
1b4966c533
commit
28b5b61052
|
@ -310,7 +310,7 @@ export default {
|
||||||
this.isLoading=false;
|
this.isLoading=false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.isLoading=false;
|
this.isLoading=false;
|
||||||
throw new Error('error.message');
|
throw new Error(error.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$router.push('/dashboard/downtimes');
|
this.$router.push('/dashboard/downtimes');
|
||||||
|
|
Loading…
Reference in New Issue