Skip to content

Commit

Permalink
Use new flattenResources function when getting selected resources
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Jan 21, 2025
1 parent b98ebe3 commit ec52eb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/utils/IPSResourceCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ export class IPSResourceCollection {
delete rBT[sectionKey];
}
});
let selectedIPSResources = Object.values(rBT)
.flatMap(types => Object.values(types))
let selectedIPSResources = this.flattenResources(rBT)
.filter(resource => (resource as ResourceHelper).include ) as ResourceHelper[];
return selectedIPSResources;
}
Expand Down

0 comments on commit ec52eb3

Please sign in to comment.