From bc1a0408341ae5daf183f240d83b724ee84d6a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Mon, 4 Sep 2023 09:37:13 +0200 Subject: [PATCH] Filter out unresolved objective references --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 2e81bcd69..0e80f0273 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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,