Don't add label fields on refresh

This commit is contained in:
Ian Gulliver
2019-07-10 21:35:03 +00:00
parent 703be7aa75
commit da1ab28a33
2 changed files with 6 additions and 2 deletions

View File

@@ -69,7 +69,9 @@ class EditorLink extends EditorEntryBase {
static unserialize(ser) {
let link = new EditorLink();
link.nodes_.clear();
link.setLabel(ser.label);
if (ser.label != null) {
link.setLabel(ser.label);
}
link.nodes_.unserialize([ser.from, ser.to]);
return link.getElement();
}