Skip to content

Commit

Permalink
Filter out unresolved objective references
Browse files Browse the repository at this point in the history
  • Loading branch information
simenheg committed Sep 4, 2023
1 parent f6375ed commit bc1a040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export const storeGetters = {
* `state.objectiveContributors` enriched with ID.
*/
objectivesWithID: (state) => {
const externalObjectives = state.objectiveContributors.map((oc) => oc.objective);
const externalObjectives = state.objectiveContributors
.filter((oc) => typeof oc.objective !== 'string')
.map((oc) => oc.objective);

return state.objectives.concat(externalObjectives).map((o) => ({
...o,
Expand Down

0 comments on commit bc1a040

Please sign in to comment.