omnibox: add maybe operators

This commit is contained in:
Logan Allen 2021-04-23 14:34:39 -05:00
parent 87feb74184
commit 27e5a6aef4

View File

@ -102,7 +102,7 @@ export default function index(contacts, associations, apps, currentGroup, groups
}).map((e) => {
// iterate through each app's metadata object
Object.keys(associations[e])
.filter((association) => !associations[e][association].metadata.hidden)
.filter((association) => !associations?.[e]?.[association]?.metadata?.hidden)
.map((association) => {
const each = associations[e][association];
let title = each.resource;