Skip to content

Commit

Permalink
Merge pull request #892 from oslokommune/hide-archived-externals
Browse files Browse the repository at this point in the history
Hide archived external objectives
  • Loading branch information
simenheg authored Oct 13, 2023
2 parents 54a541f + 9645877 commit 6926ff5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ export const storeGetters = {
const externalObjectives = state.objectiveContributors
.filter((oc) => {
return (
// Filter out those that aren't external
typeof oc.objective !== 'string' && !objectiveIDs.includes(oc.objective.id)
typeof oc.objective !== 'string' &&
// Filter out archived objectives ...
!oc.objective.archived &&
// ... and those that aren't external.
!objectiveIDs.includes(oc.objective.id)
);
})
.map((oc) => oc.objective);
Expand Down

0 comments on commit 6926ff5

Please sign in to comment.