Skip to content

Commit d27f877

Browse files
laurenastrid1Lauren Nathan
andauthored
fix infinite loop on error (#21597) (#21901)
Co-authored-by: Lauren Nathan <laurennathan@microsoft.com>
1 parent c6bae01 commit d27f877

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extensions/mssql/src/azure/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export async function fetchUserGroups(userId: string): Promise<UserGroup[]> {
147147
nextUrl = response.data["@odata.nextLink"];
148148
} catch (error) {
149149
console.error("Error fetching user groups:", error);
150+
break; // Exit the loop on error
150151
}
151152
}
152153

0 commit comments

Comments
 (0)