We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eb68cb commit 912dbc6Copy full SHA for 912dbc6
lib/Toolbar.js
@@ -228,7 +228,8 @@ class Toolbar {
228
229
if (options.templatePath) {
230
const [schema_folder, template_name] = options.templatePath.split('/');
231
- for (const [schema_name, schema_obj] of Object.entries(this.menu)) {
+ //for (const [schema_name, schema_obj] of Object.entries(this.menu)) {
232
+ for (const schema_obj of Object.values(this.menu)) {
233
if ('folder' in schema_obj && schema_obj['folder'] == schema_folder && template_name in schema_obj['templates']) {
234
this.$selectTemplate.val(options.templatePath);
235
}
0 commit comments