mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
Fix error Cannot read properties of null (reading 'split')
This commit is contained in:
parent
f6a7a63feb
commit
170ac4d6e2
@ -1073,8 +1073,8 @@ export class etemplate2
|
||||
|
||||
// check if id contains a hierachical name, eg. "button[save]"
|
||||
let id = _widget.id;
|
||||
let indexes = id.split('[');
|
||||
if(indexes.length > 1)
|
||||
let indexes = id?.split('[');
|
||||
if(indexes?.length > 1)
|
||||
{
|
||||
indexes = [indexes.shift(), indexes.join('[')];
|
||||
indexes[1] = indexes[1].substring(0, indexes[1].length - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user