From 2a227f4b7fda9e7f11732db0fb0d2842920f01d6 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 7 Feb 2026 23:50:37 +0100 Subject: [PATCH] table element --- config/current.ver | 2 +- public/assets/js/bridge/table-builder.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/current.ver b/config/current.ver index ca9ab89..34b491f 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.70 \ No newline at end of file +1.2.71 \ No newline at end of file diff --git a/public/assets/js/bridge/table-builder.js b/public/assets/js/bridge/table-builder.js index 1c08afb..ddee1e2 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -146,12 +146,18 @@ model: BaseModel.extend({ initialize(props = {}, opts = {}) { // Guard before base init: grapes expects classes to be iterable in getAttributes + if (props && props.classes && typeof props.classes.forEach !== 'function') { + props.classes = []; + } if (!this.classes || typeof this.classes.forEach !== 'function') { this.classes = []; } if (BaseModel.prototype.initialize) { BaseModel.prototype.initialize.apply(this, [props, opts]); } + if (!this.classes || typeof this.classes.forEach !== 'function') { + this.classes = []; + } const attrs = this.getAttributes ? this.getAttributes() : {}; const nextAttrs = Object.assign({ 'data-bridge-table': '1',