Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 7f235a4

Browse files
committedSep 6, 2018
fix: tolerate unnamed refs providers
1 parent b00b8f3 commit 7f235a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/environment/providers/location.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function getLocationsWithProviderName<
9292
providersWithName.map(async ({ provider, name }) => {
9393
const providerRes = await provider(params).toPromise()
9494
return flattenAndCompactNonNull([providerRes]).map(loc => ({
95-
providerName: name,
95+
providerName: name || '(Unnamed)',
9696
location: loc,
9797
}))
9898
})

0 commit comments

Comments
 (0)