diff --git a/resources/web/config.js b/resources/web/config.js index b4188fc..bb3687a 100644 --- a/resources/web/config.js +++ b/resources/web/config.js @@ -237,7 +237,6 @@ async function renderCredentialsForms() { // Get auth information from provider const auth = provider.auth || {}; - const supportedAuthTypes = auth.supported_auth_types || []; // Determine UI based on auth properties const needsUserCredentials = auth.needs_user_credentials || false; @@ -324,9 +323,6 @@ async function renderCredentialsForms() { Authentication Type Unknown

This provider's authentication method could not be determined.

- ${supportedAuthTypes.length > 0 ? ` - Supported auth types: ${supportedAuthTypes.join(', ')} - ` : ''} `; } @@ -389,8 +385,21 @@ async function renderCredentialsForms() { }); // Wait for all promises and render - const htmls = await Promise.all(credentialsPromises); - credentialsContainer.innerHTML = htmls.join(''); + try { + const htmls = await Promise.all(credentialsPromises); + credentialsContainer.innerHTML = htmls.join(''); + } catch (error) { + console.error('Error rendering credentials forms:', error); + credentialsContainer.innerHTML = ` +
+ +
+ Failed to render credentials +

${error.message}

+
+
+ `; + } } // Load proxy forms