From dd174ce9fa99f7c8ddc59a5d1dcaf14c3e26a935 Mon Sep 17 00:00:00 2001 From: hagen-danswer Date: Wed, 11 Dec 2024 14:46:32 -0800 Subject: [PATCH] Made frontend conditional check for source (#3434) --- .../connectors/[connector]/pages/gdrive/GoogleDrivePage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/app/admin/connectors/[connector]/pages/gdrive/GoogleDrivePage.tsx b/web/src/app/admin/connectors/[connector]/pages/gdrive/GoogleDrivePage.tsx index 9ff60ebc223..1c2f60869ec 100644 --- a/web/src/app/admin/connectors/[connector]/pages/gdrive/GoogleDrivePage.tsx +++ b/web/src/app/admin/connectors/[connector]/pages/gdrive/GoogleDrivePage.tsx @@ -108,7 +108,9 @@ const GDriveMain = ({}: {}) => { const googleDriveServiceAccountCredential: | Credential | undefined = credentialsData.find( - (credential) => credential.credential_json?.google_service_account_key + (credential) => + credential.credential_json?.google_service_account_key && + credential.source === "google_drive" ); const googleDriveConnectorIndexingStatuses: ConnectorIndexingStatus<