Skip to content

Commit ae72085

Browse files
authored
fix(search-indexes): fix delete subtitle and reset state (#4897)
1 parent dd89515 commit ae72085

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/compass-indexes/src/modules/search-indexes.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ const fetchIndexes = (
544544
// previous list of indexes is shown to the user.
545545
if (newStatus === 'FETCHING') {
546546
dispatch(setError((err as Error).message));
547+
} else {
548+
// If fetch fails for refresh or polling, set the status to READY again.
549+
dispatch({
550+
type: ActionTypes.SetStatus,
551+
status: SearchIndexesStatuses.READY,
552+
});
547553
}
548554
}
549555
};
@@ -607,7 +613,7 @@ export const dropSearchIndex = (
607613
variant: 'danger',
608614
requiredInputText: name,
609615
description:
610-
'If you drop default, all queries using it will no longer function',
616+
'If you drop this index, all queries using it will no longer function.',
611617
});
612618
if (!isConfirmed) {
613619
return;

0 commit comments

Comments
 (0)