Skip to content

Commit

Permalink
Fix undefined keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nichwall committed Mar 10, 2024
1 parent cc9a569 commit 127e270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions copy_keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function updateJSONFiles(baseFileName, directory) {
}
}

const keys = Object.keys(otherData);
// Sort the other data alphabetically by key (case insensitive)
const sortedOtherData = {};
keys.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26644,6 +26644,7 @@ function updateJSONFiles(baseFileName, directory) {
}
}

const keys = Object.keys(otherData);
// Sort the other data alphabetically by key (case insensitive)
const sortedOtherData = {};
keys.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
Expand Down

0 comments on commit 127e270

Please sign in to comment.