Skip to content

Commit fa85068

Browse files
committed
fix: preserve feed selector RBR for workspace-level errors
The inline banner only covers isFeedConnectionBroken and hasFeedErrors, so workspace-level errors on the current feed need to still surface via the feed selector RBR.
1 parent 5a38944 commit fa85068

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Tables/WorkspaceCompanyCardsTable/WorkspaceCompanyCardsTableHeaderButtons.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function WorkspaceCompanyCardsTableHeaderButtons({policyID, feedName, isLoading,
7171
const hasFeedErrors = feedErrors?.hasFeedErrors;
7272
const isFeedConnectionBroken = feedErrors?.isFeedConnectionBroken;
7373
const hasOtherFeedWithRBR = Object.keys(companyFeeds ?? {}).some((feed) => feed !== feedName && shouldShowRbrForFeedNameWithDomainID[feed]);
74+
const shouldShowFeedSelectorRBR = hasOtherFeedWithRBR || !!feedErrors?.hasWorkspaceErrors;
7475

7576
const openBankConnection = () => {
7677
if (!feedName) {
@@ -144,7 +145,7 @@ function WorkspaceCompanyCardsTableHeaderButtons({policyID, feedName, isLoading,
144145
CardFeedIcon={CardFeedIcon}
145146
feedName={formattedFeedName}
146147
supportingText={supportingText}
147-
shouldShowRBR={hasOtherFeedWithRBR}
148+
shouldShowRBR={shouldShowFeedSelectorRBR}
148149
/>
149150
)}
150151

0 commit comments

Comments
 (0)