NPE in editArc

This commit is contained in:
portree_kid 2020-03-06 07:58:04 +01:00
parent 8fccc23009
commit 034c132347

View File

@ -279,6 +279,8 @@
}, },
editedArc() { editedArc() {
console.log('Edited Arc : ' + this.$store.state.Editable.index); console.log('Edited Arc : ' + this.$store.state.Editable.index);
if (!this.groundnetLayerGroup)
return;
var arc = this.groundnetLayerGroup.getLayer(this.$store.state.Editable.index); var arc = this.groundnetLayerGroup.getLayer(this.$store.state.Editable.index);
if (arc && arc instanceof L.Polyline) { if (arc && arc instanceof L.Polyline) {
arc.options.attributes = Object.assign({}, this.$store.state.Editable.data.arc) arc.options.attributes = Object.assign({}, this.$store.state.Editable.data.arc)