Skip to content

Commit

Permalink
Comment out schema_name to be used in future.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Jan 31, 2025
1 parent 9eb68cb commit 912dbc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 912dbc6

Please sign in to comment.