From 01d043b34982bd3ee00eecc4e52607c511867dd0 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Mon, 20 Nov 2023 10:42:08 +0100 Subject: [PATCH] registryForScheme: Do not match with providers that don't have providerType --- src/lib/CocodaSDK.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/CocodaSDK.js b/src/lib/CocodaSDK.js index 63cfe04..f04d903 100644 --- a/src/lib/CocodaSDK.js +++ b/src/lib/CocodaSDK.js @@ -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) {