Add npe check

pull/1281/head
Cagatay Civici 2021-05-18 11:33:48 +03:00
parent b0c0888a1d
commit fd7267bc01
1 changed files with 5 additions and 2 deletions

View File

@ -14,8 +14,10 @@ export default {
calendar: null,
watch: {
events(value) {
if (value && this.calendar) {
this.calendar.removeAllEventSources();
this.calendar.addEventSource(value);
}
},
options(value) {
if (value && this.calendar) {
@ -31,6 +33,7 @@ export default {
}
},
updated() {
console.log('updated');
if (!this.calendar && this.$el.offsetParent) {
this.initialize();
}