From 462f5bb55de4f588c745efc5c5a7ead85656ad17 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 3 Aug 2022 11:45:45 -0600 Subject: [PATCH] Fix widget without ID breaks submit --- api/js/etemplate/etemplate2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index df2357f420..c389726980 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -1189,7 +1189,7 @@ export class etemplate2 let path = _widget.getPath(); // check if id contains a hierachical name, eg. "button[save]" - let id = _widget.id; + let id = _widget.id || ""; let indexes = id?.split('['); if(indexes?.length > 1) {