Made frontend conditional check for source (#3434)

This commit is contained in:
hagen-danswer 2024-12-11 14:46:32 -08:00 committed by GitHub
parent 72b4e8e9fe
commit cae8a131a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,9 @@ const GDriveMain = ({}: {}) => {
const googleDriveServiceAccountCredential:
| Credential<GoogleDriveServiceAccountCredentialJson>
| 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<