replicated drive fix for gmail connector (#1658)

This commit is contained in:
hagen-danswer
2024-06-18 11:47:06 -04:00
committed by GitHub
parent c798ade127
commit 4e15ba78d5

View File

@@ -141,9 +141,16 @@ const Main = () => {
const { popup, setPopup } = usePopup();
const appCredentialSuccessfullyFetched =
appCredentialData ||
(isAppCredentialError && isAppCredentialError.status === 404);
const serviceAccountKeySuccessfullyFetched =
serviceAccountKeyData ||
(isServiceAccountKeyError && isServiceAccountKeyError.status === 404);
if (
(!appCredentialData && isAppCredentialLoading) ||
(!serviceAccountKeyData && isServiceAccountKeyLoading) ||
(!appCredentialSuccessfullyFetched && isAppCredentialLoading) ||
(!serviceAccountKeySuccessfullyFetched && isServiceAccountKeyLoading) ||
(!connectorIndexingStatuses && isConnectorIndexingStatusesLoading) ||
(!credentialsData && isCredentialsLoading)
) {
@@ -170,7 +177,10 @@ const Main = () => {
);
}
if (isAppCredentialError || isServiceAccountKeyError) {
if (
!appCredentialSuccessfullyFetched ||
!serviceAccountKeySuccessfullyFetched
) {
return (
<div className="mx-auto">
<div className="text-red-500">