From 7f0d45d9935df6b7b6ec11fa6d9e63ddb8ab8c7e Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Mon, 1 Jul 2024 11:01:35 +0200
Subject: [PATCH] fix: id not defined

---
 source/components/form/form.mjs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/components/form/form.mjs b/source/components/form/form.mjs
index 464f8b115..adc86a3ed 100644
--- a/source/components/form/form.mjs
+++ b/source/components/form/form.mjs
@@ -176,15 +176,15 @@ function initEventHandler() {
 
 				let elementID = element.id;
 
-				if (id === "") {
+				if (elementID === "") {
 					elementID = element.getAttribute("name");
 				}
 
-				if (id === "") {
+				if (elementID === "") {
 					elementID = element.getAttribute("data-monster-attributes");
 				}
 
-				if (id === "") {
+				if (elementID === "") {
 					elementID = element.innerText.substring(0, 20);
 				}
 
-- 
GitLab