#16 fix error with vue_activity component in person context (when accompanyingPeriod is null)

This commit is contained in:
2022-11-17 21:43:03 +01:00
parent 3ca46efd2c
commit 8894491dac
2 changed files with 4 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ const store = createStore({
},
getters: {
suggestedEntities(state) {
if (typeof state.activity.accompanyingPeriod === "undefined") {
if (typeof state.activity.accompanyingPeriod === "undefined" || state.activity.accompanyingPeriod === null) {
return [];
}
const allEntities = [