Skip to content

Commit

Permalink
registryForScheme: Do not match with providers that don't have provid…
Browse files Browse the repository at this point in the history
…erType
  • Loading branch information
stefandesu committed Nov 20, 2023
1 parent 9145952 commit 01d043b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/CocodaSDK.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export default class CocodaSDK {
config.scheme = scheme
// Multiple providers may implement a certain API, so we're looping through providers
for (const provider of Object.values(providers)) {
if (provider.providerType && provider.providerType !== type) {
if (provider?.providerType !== type) {
continue
}
if (!provider._registryConfigForBartocApiConfig) {
Expand Down

0 comments on commit 01d043b

Please sign in to comment.