jedison 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3729,12 +3729,14 @@ class EditorArray extends Editor {
3729
3729
  }
3730
3730
  class EditorArrayTable extends EditorArray {
3731
3731
  static resolves(schema, refParser) {
3732
- const schemaItems = getSchemaItems(schema);
3732
+ let schemaItems = getSchemaItems(schema);
3733
3733
  if (!schemaItems) {
3734
3734
  return false;
3735
3735
  }
3736
- const expandedSchemaItems = refParser.expand(schemaItems);
3737
- const itemType = getSchemaType(expandedSchemaItems);
3736
+ if (refParser) {
3737
+ schemaItems = refParser.expand(schemaItems);
3738
+ }
3739
+ const itemType = getSchemaType(schemaItems);
3738
3740
  if (!itemType) {
3739
3741
  return false;
3740
3742
  }
@@ -3760,9 +3762,11 @@ class EditorArrayTable extends EditorArray {
3760
3762
  });
3761
3763
  th.appendChild(label);
3762
3764
  table.thead.appendChild(th);
3763
- const schemaItems = getSchemaItems(this.instance.schema);
3764
- const expandedSchemaItems = this.instance.jedison.refParser.expand(schemaItems);
3765
- const itemProperties = getSchemaProperties(expandedSchemaItems);
3765
+ let schemaItems = getSchemaItems(this.instance.schema);
3766
+ if (this.instance.jedison.refParser) {
3767
+ schemaItems = this.instance.jedison.refParser.expand(schemaItems);
3768
+ }
3769
+ const itemProperties = getSchemaProperties(schemaItems);
3766
3770
  Object.values(itemProperties).forEach((propertySchema) => {
3767
3771
  const th2 = this.theme.getTableHeader();
3768
3772
  if (propertySchema.title) {