@websy/websy-designs 1.11.8 → 1.11.9

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.
@@ -5742,13 +5742,12 @@ class WebsyTable {
5742
5742
  let html = `
5743
5743
  <td
5744
5744
  `
5745
- if (!this.options.columns[i].showAsImage && c.value.indexOf('<svg') === -1 && c.value.indexOf('<img') === -1) {
5745
+ if (!this.options.columns[i].showAsImage && c.value && c.value.indexOf && c.value.indexOf('<svg') === -1 && c.value.indexOf('<img') === -1) {
5746
5746
  html += `
5747
5747
  data-info='${info}'
5748
5748
  `
5749
5749
  }
5750
5750
  html += `
5751
- data-info='${info}'
5752
5751
  data-row-index='${this.rowCount + rowIndex}'
5753
5752
  data-col-index='${i}'
5754
5753
  class='${this.options.columns[i].classes || ''}'
@@ -5579,10 +5579,10 @@ var WebsyTable = /*#__PURE__*/function () {
5579
5579
  c.value = "\n <img src='".concat(c.value, "'>\n ");
5580
5580
  }
5581
5581
  var html = "\n <td \n ";
5582
- if (!_this38.options.columns[i].showAsImage && c.value.indexOf('<svg') === -1 && c.value.indexOf('<img') === -1) {
5582
+ if (!_this38.options.columns[i].showAsImage && c.value && c.value.indexOf && c.value.indexOf('<svg') === -1 && c.value.indexOf('<img') === -1) {
5583
5583
  html += "\n data-info='".concat(info, "'\n ");
5584
5584
  }
5585
- html += "\n data-info='".concat(info, "' \n data-row-index='").concat(_this38.rowCount + rowIndex, "' \n data-col-index='").concat(i, "' \n class='").concat(_this38.options.columns[i].classes || '', "' \n style='").concat(style, "'\n colspan='").concat(c.colspan || 1, "'\n rowspan='").concat(c.rowspan || 1, "'\n >").concat(c.value, "</td>\n ");
5585
+ html += "\n data-row-index='".concat(_this38.rowCount + rowIndex, "' \n data-col-index='").concat(i, "' \n class='").concat(_this38.options.columns[i].classes || '', "' \n style='").concat(style, "'\n colspan='").concat(c.colspan || 1, "'\n rowspan='").concat(c.rowspan || 1, "'\n >").concat(c.value, "</td>\n ");
5586
5586
  return html;
5587
5587
  }
5588
5588
  }