@descope/web-components-ui 1.0.270 → 1.0.271
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/7044.js +1 -1
- package/dist/umd/descope-grid-descope-grid-custom-column-index-js.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-grid/descope-grid-custom-column/GridCustomColumnClass.js +3 -3
- package/src/components/descope-grid/descope-grid-text-column/GridTextColumnClass.js +1 -1
package/dist/index.esm.js
CHANGED
@@ -7120,7 +7120,7 @@ class GridTextColumnClass extends GridSortColumn {
|
|
7120
7120
|
}
|
7121
7121
|
|
7122
7122
|
_defaultRenderer(cell, _col, model) {
|
7123
|
-
const content = model.item[this.path];
|
7123
|
+
const content = model.item[this.path] || '';
|
7124
7124
|
cell.innerHTML = content;
|
7125
7125
|
if (Array.isArray(content)) {
|
7126
7126
|
cell.innerHTML = content.join(', ');
|
@@ -7147,7 +7147,7 @@ customElements.define(componentName$9, GridTextColumnClass);
|
|
7147
7147
|
|
7148
7148
|
class GridCustomColumnClass extends GridTextColumnClass {
|
7149
7149
|
_defaultRenderer(cell, _col, model) {
|
7150
|
-
const content = model.item[this.path];
|
7150
|
+
const content = model.item[this.path] || '';
|
7151
7151
|
|
7152
7152
|
// we get a list of elements that can be used to render the content
|
7153
7153
|
// each element can have a "pattern" attribute which contains regex expression
|
@@ -7162,13 +7162,13 @@ class GridCustomColumnClass extends GridTextColumnClass {
|
|
7162
7162
|
});
|
7163
7163
|
|
7164
7164
|
if (!contentEle) {
|
7165
|
-
cell.innerHTML = model.item[this.path];
|
7165
|
+
cell.innerHTML = model.item[this.path] || '';
|
7166
7166
|
|
7167
7167
|
return;
|
7168
7168
|
}
|
7169
7169
|
|
7170
7170
|
const newEle = contentEle.cloneNode(true);
|
7171
|
-
newEle.innerHTML = content;
|
7171
|
+
newEle.innerHTML = content || '';
|
7172
7172
|
cell.innerHTML = '';
|
7173
7173
|
cell.append(newEle);
|
7174
7174
|
}
|