mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-25 15:30:59 +02:00
Made frontend conditional check for source (#3434)
This commit is contained in:
parent
72b4e8e9fe
commit
cae8a131a2
@ -104,7 +104,9 @@ const GDriveMain = ({}: {}) => {
|
|||||||
const googleDriveServiceAccountCredential:
|
const googleDriveServiceAccountCredential:
|
||||||
| Credential<GoogleDriveServiceAccountCredentialJson>
|
| Credential<GoogleDriveServiceAccountCredentialJson>
|
||||||
| undefined = credentialsData.find(
|
| 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<
|
const googleDriveConnectorIndexingStatuses: ConnectorIndexingStatus<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user