Skip to content

Commit f9b5490

Browse files
committed
make the lack of address book non-fatal when listing groups
1 parent 6c59f2a commit f9b5490

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

groupMembershipControl.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export async function renderGroupMemberships (person, context) {
8787
if (!book) {
8888
book = kb.any(undefined, ns.vcard('includesGroup'))
8989
if (!book) {
90-
throw new Error('findBookFromGroups: Cant find address book which this group is part of')
90+
// throw new Error('findBookFromGroups: Cant find address book which this group is part of')
91+
return // no book => no groups
9192
}
9293
}
9394
const groupIndex = kb.any(book, ns.vcard('groupIndex'))

0 commit comments

Comments
 (0)