@stemy/ngx-utils 19.2.19 → 19.2.20
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.
|
@@ -6383,7 +6383,7 @@ class DynamicTableComponent {
|
|
|
6383
6383
|
}, {});
|
|
6384
6384
|
this.cols = Object.keys(this.realColumns);
|
|
6385
6385
|
const sortable = this.cols.filter(c => this.realColumns[c].sort);
|
|
6386
|
-
this.orderBy = this.orderBy
|
|
6386
|
+
this.orderBy = sortable.includes(this.orderBy) ? this.orderBy : sortable[0] || null;
|
|
6387
6387
|
this.query = {};
|
|
6388
6388
|
this.setProperty("cell-width", MathUtils.round(100 / this.cols.length, 4) + "%");
|
|
6389
6389
|
}
|