Skip to content

Commit

Permalink
Merge pull request #74 from scsm-ua/dev
Browse files Browse the repository at this point in the history
fix duplicate items in a-z index
  • Loading branch information
nadev03 authored Dec 24, 2024
2 parents 6177b5a + c47bbed commit cb08845
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/makeIndexList.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ function makeIndexList(categories, index) {
*/
function makeLineVersions(items, index) {
const arr = [];
const unique_ids = {};

items.forEach((item) => {

if (item.id in unique_ids) {
return;
}
unique_ids[item.id] = true;

var alias;

if (index[item.id]) {
Expand Down

0 comments on commit cb08845

Please sign in to comment.