Skip to content

Commit c78ec22

Browse files
committed
fix(knowledge): stop offering reconnect once a connector holds a credential again
1 parent e70aaf0 commit c78ec22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/connectors-section/connector-recovery.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export function ConnectorRecovery({
8080
}
8181

8282
const docsUrl = isSearchIndex ? connectorDef?.searchDocsUrl : undefined
83-
const credentialRemoved = connector.lastSyncError === CREDENTIAL_REMOVED_SYNC_ERROR
83+
const credentialRemoved =
84+
connector.lastSyncError === CREDENTIAL_REMOVED_SYNC_ERROR && !connector.credentialId
8485
const pausedTitle = credentialRemoved
8586
? 'Reconnect to resume syncing'
8687
: 'Sync paused after repeated failures'

0 commit comments

Comments
 (0)