Skip to content

Commit a7b8182

Browse files
Add ‘Any’ option to school type filter
1 parent 327880d commit a7b8182

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/school.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const schoolController = {
6060
}
6161

6262
// Filter by phase
63-
if (phase) {
63+
if (phase && phase !== 'none') {
6464
results = results.filter((school) => school.phase === phase)
6565
}
6666

app/views/school/list.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
small: true,
39-
items: enumItems(SchoolPhase),
39+
items: radioFilterItems(SchoolPhase, data.phase),
4040
decorate: "phase"
4141
}) }}
4242

0 commit comments

Comments
 (0)