Skip to content

Commit fd25948

Browse files
Fixed bug in user query (#419)
1 parent 2396bb5 commit fd25948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph/graph.user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export async function getUsersForPeopleQueries(graph: IGraph, peopleQueries: str
136136

137137
for (const personQuery of peopleQueries) {
138138
const person = response[personQuery];
139-
if (person) {
139+
if (person && person.value && person.value.length) {
140140
people.push(person.value[0]);
141141
}
142142
}

0 commit comments

Comments
 (0)