Skip to content

Commit

Permalink
Merge pull request #50 from CityOfPhiladelphia/cherry-pick-pagination
Browse files Browse the repository at this point in the history
fixed pagination and search
  • Loading branch information
ajrothwell authored Dec 18, 2024
2 parents 8d8fd0a + c43277f commit e9033e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,9 @@ export default {
}
}
let fixedPriorityTools = this.tools.filter(tool => tool.priority_fixed_value).sort((a, b) => a.priority_fixed_value - b.priority_fixed_value);
for (let tool of fixedPriorityTools) {
if (this.featuredTools.length < 3) {
this.featuredTools.push(tool);
}
let iTool = this.tools.filter(tool => tool.priority_fixed_value === 1)[0];
if (iTool) {
this.featuredTools.push(iTool);
}
this.featuredTools.sort(function(a, b) {
Expand Down

0 comments on commit e9033e5

Please sign in to comment.