From a3870f0518e958d9668ab4df33568bcbe4ce609c Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Mon, 10 Jun 2024 09:56:15 -0700 Subject: [PATCH] Update JSONSchemaForm.js --- src/electron/frontend/core/components/JSONSchemaForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/electron/frontend/core/components/JSONSchemaForm.js b/src/electron/frontend/core/components/JSONSchemaForm.js index 814c4f054..c18d308f6 100644 --- a/src/electron/frontend/core/components/JSONSchemaForm.js +++ b/src/electron/frontend/core/components/JSONSchemaForm.js @@ -1012,8 +1012,8 @@ export class JSONSchemaForm extends LitElement { if (groupEl) { - groupEl.setAttribute(`data-${externalPath}-errors`, updatedErrors.length); - groupEl.setAttribute(`data-${externalPath}-warnings`, updatedWarnings.length); + groupEl.setAttribute(`data-${name}-errors`, updatedErrors.length); + groupEl.setAttribute(`data-${name}-warnings`, updatedWarnings.length); const allFormSections = groupEl.querySelectorAll(".form-section"); const inputs = Array.from(allFormSections).map((section) => section.id);