@webtypen/webframez-core 0.3.107 → 0.3.108

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.
@@ -554,10 +554,9 @@ class Datatable {
554
554
  if (!this.columns) {
555
555
  return null;
556
556
  }
557
- if (typeof this.columns === "function") {
558
- return yield this.columns(req);
559
- }
560
- return this.columns;
557
+ const columns = typeof this.columns === "function" ? yield this.columns(req) : this.columns;
558
+ // Conditional definitions are absent columns, including for saved layouts and display options.
559
+ return columns ? Object.fromEntries(Object.entries(columns).filter(([, column]) => column != null && column !== false)) : columns;
561
560
  });
562
561
  }
563
562
  getOnPressLink(req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.107",
3
+ "version": "0.3.108",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",