Skip to content

Commit

Permalink
Made frontend conditional check for source (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer authored and Richard Kuo [bot] committed Dec 11, 2024
1 parent d0b4901 commit dd174ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,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<
Expand Down

0 comments on commit dd174ce

Please sign in to comment.