From fbcde37d952cf876f30fbc082ed6c60acd605cbe Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 7 Feb 2026 23:44:56 +0100 Subject: [PATCH] table element --- config/current.ver | 2 +- public/assets/js/bridge/table-builder.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/current.ver b/config/current.ver index 0951b97..88292fb 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.68 \ No newline at end of file +1.2.69 \ 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 f3896cf..0d04135 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -148,6 +148,10 @@ if (BaseModel.prototype.initialize) { BaseModel.prototype.initialize.apply(this, [props, opts]); } + // Guard: grapes may not have classes as array/collection yet + if (!this.classes || typeof this.classes.forEach !== 'function') { + this.classes = []; + } const attrs = this.getAttributes ? this.getAttributes() : {}; const nextAttrs = Object.assign({ 'data-bridge-table': '1',