export class Basefield {
  id = '';
  label = '';
  columns = 8;
  index = undefined;
  parent = undefined;

  init(id = '', {label = '', columns = 8, parent, index} = {}) {
    this.id = id;
    this.label = label;
    this.columns = columns;
    this.index = index;
    this.parent = parent;
    return this;
  }

  bind() {
    if (this.label.length === 0) {
      this.label = this.id.substr(0, 1).toUpperCase() + this.id.substr(1);
    }
  }

  delete() {
    if (this.parent && this.index) {
      this.parent.deleteChild(this.index);
    }
  }

  getValue() {
    return undefined;
  }
}

@@ -476,16 +476,23 @@
 arent &&
+ typeof
  this.in
@@ -494,16 +494,29 @@
 is.index
+ === 'number'
 ) %7B%0A    

Fix not being able to delete first item of list