@kodaris/krubble-components 1.0.48 → 1.0.49

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.
@@ -2558,17 +2558,21 @@ let KRTable = class KRTable extends i$2 {
2558
2558
  this._data.forEach((row, rowIndex) => {
2559
2559
  columns.forEach(col => {
2560
2560
  const result = col.render(row);
2561
- const content = typeof result === 'string' ? result : '';
2562
- if (content) {
2563
- const el = document.createElement('span');
2564
- el.slot = `cell-${rowIndex}-${col.id}`;
2565
- if (col.type === 'actions') {
2566
- el.style.display = 'flex';
2567
- el.style.gap = '8px';
2568
- }
2569
- el.innerHTML = content;
2570
- this.appendChild(el);
2561
+ if (!result)
2562
+ return;
2563
+ const el = document.createElement('span');
2564
+ el.slot = `cell-${rowIndex}-${col.id}`;
2565
+ if (col.type === 'actions') {
2566
+ el.style.display = 'flex';
2567
+ el.style.gap = '8px';
2568
+ }
2569
+ if (typeof result === 'string') {
2570
+ el.innerHTML = result;
2571
+ }
2572
+ else {
2573
+ D(result, el);
2571
2574
  }
2575
+ this.appendChild(el);
2572
2576
  });
2573
2577
  });
2574
2578
  }