Skip to content

Commit

Permalink
CI error schema_name unused fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Feb 4, 2025
1 parent 5ba4694 commit 4e13907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ class Toolbar {

updateTemplateOptions() {
this.$selectTemplate.empty();
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)) {
const templates = schema_obj['templates'];
for (const [template_name, template_obj] of Object.entries(templates)) {
let path = schema_obj.folder + '/' + template_name;
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const schemaFromChildPath = (childPath) =>

// Returns default template built from schema
async function compileSchema(schema_folder) { // e.g. canada_covid19

for (const [schema_name, schema_obj] of Object.entries(menu)) {
//for (const [schema_name, schema_obj] of Object.entries(menu)) {
for (const schema_obj of Object.values(menu)) {
if (schema_obj.folder === schema_folder) {
var schema = await fetchSchema(`/templates/${schema_folder}/schema.json`);
const template = {
Expand Down

0 comments on commit 4e13907

Please sign in to comment.