Skip to content

Commit 912dbc6

Browse files
committed
Comment out schema_name to be used in future.
1 parent 9eb68cb commit 912dbc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Toolbar.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ class Toolbar {
228228

229229
if (options.templatePath) {
230230
const [schema_folder, template_name] = options.templatePath.split('/');
231-
for (const [schema_name, schema_obj] of Object.entries(this.menu)) {
231+
//for (const [schema_name, schema_obj] of Object.entries(this.menu)) {
232+
for (const schema_obj of Object.values(this.menu)) {
232233
if ('folder' in schema_obj && schema_obj['folder'] == schema_folder && template_name in schema_obj['templates']) {
233234
this.$selectTemplate.val(options.templatePath);
234235
}

0 commit comments

Comments
 (0)