diff --git a/api/js/etemplate/et2_core_arrayMgr.js b/api/js/etemplate/et2_core_arrayMgr.js index 818a9c4567..7ddbbc122d 100644 --- a/api/js/etemplate/et2_core_arrayMgr.js +++ b/api/js/etemplate/et2_core_arrayMgr.js @@ -121,7 +121,7 @@ var et2_arrayMgr = /** @class */ (function () { * @return {string[]} */ et2_arrayMgr.prototype.explodeKey = function (_key) { - if (!_key || _key.trim() === "") + if (!_key || typeof _key == 'string' && _key.trim() === "") return []; // Parse the given key by removing the "]"-chars and splitting at "[" var indexes = [_key]; diff --git a/api/js/etemplate/et2_core_arrayMgr.ts b/api/js/etemplate/et2_core_arrayMgr.ts index 17adc7e204..352356b9c3 100644 --- a/api/js/etemplate/et2_core_arrayMgr.ts +++ b/api/js/etemplate/et2_core_arrayMgr.ts @@ -125,7 +125,7 @@ export class et2_arrayMgr * @return {string[]} */ explodeKey(_key: string): string[] { - if(!_key || _key.trim() === "") return []; + if(!_key || typeof _key == 'string' && _key.trim() === "") return []; // Parse the given key by removing the "]"-chars and splitting at "[" let indexes = [_key];