Skip to content

Commit

Permalink
undefined _columnsInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhauck committed Mar 7, 2024
1 parent 6da9a97 commit 23cd625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layer-table/layer-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ export class LayerTable {
const hasChange = columnTemplates?.some((ct, i) => {
return JSON.stringify(this._table?.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct)
});
if (this._table && columnTemplates && hasChange) {
if (this._table && columnTemplates && (hasChange || !this._columnsInfo)) {
this._table.tableTemplate = new this.TableTemplate({
columnTemplates
});
Expand Down

0 comments on commit 23cd625

Please sign in to comment.