From 912dbc684a9cd16da377d2e4806a5426c00c7278 Mon Sep 17 00:00:00 2001 From: Damion Dooley Date: Fri, 31 Jan 2025 14:41:21 -0800 Subject: [PATCH] Comment out schema_name to be used in future. --- lib/Toolbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Toolbar.js b/lib/Toolbar.js index 4545606b..69772c11 100644 --- a/lib/Toolbar.js +++ b/lib/Toolbar.js @@ -228,7 +228,8 @@ class Toolbar { if (options.templatePath) { const [schema_folder, template_name] = options.templatePath.split('/'); - for (const [schema_name, schema_obj] of Object.entries(this.menu)) { + //for (const [schema_name, schema_obj] of Object.entries(this.menu)) { + for (const schema_obj of Object.values(this.menu)) { if ('folder' in schema_obj && schema_obj['folder'] == schema_folder && template_name in schema_obj['templates']) { this.$selectTemplate.val(options.templatePath); }