Fix widget without ID breaks submit

This commit is contained in:
nathan 2022-08-03 11:45:45 -06:00
parent 44c331f69d
commit 462f5bb55d

View File

@ -1189,7 +1189,7 @@ export class etemplate2
let path = _widget.getPath(); let path = _widget.getPath();
// check if id contains a hierachical name, eg. "button[save]" // check if id contains a hierachical name, eg. "button[save]"
let id = _widget.id; let id = _widget.id || "";
let indexes = id?.split('['); let indexes = id?.split('[');
if(indexes?.length > 1) if(indexes?.length > 1)
{ {