Skip to content

Commit

Permalink
Check for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
pcatkins committed Feb 4, 2024
1 parent 0a329bd commit 4f5e80f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useCertificationTypeStore = defineStore("certificationType", {
}),
getters: {
certificationTypes(state): Components.Schemas.CertificationType[] {
return state.selection === null ? [] : [state.selection, ...state.subSelection];
return state.selection === null || typeof state.selection === "undefined" ? [] : [state.selection, ...state.subSelection];
},
},
});

0 comments on commit 4f5e80f

Please sign in to comment.