Commit 84417828 authored by Robin Tissot's avatar Robin Tissot
Browse files

Fixes a JS error that may or may not fix weird behavior in text panel.

parent 0e495ba6
......@@ -26,7 +26,7 @@ var diploLine = LineBase.extend({
}
},
watch: {
'line.order': function(n,o) {
'line.order': function(n, o) {
// make sure it's at the right place,
// in case it was just created or the ordering got recalculated
let index = Array.from(this.$el.parentNode.children).indexOf(this.$el);
......@@ -49,7 +49,7 @@ var diploLine = LineBase.extend({
},
setElContent(content) {
let line = this.getEl();
line.textContent = content;
if (line) line.textContent = content;
},
getRegion() {
return this.$parent.part.regions.findIndex(r => r.pk == this.line.region);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment