Skip to content

Commit 024f26a

Browse files
committed
add dismissed
1 parent 877e8bb commit 024f26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-indexes/src/components/indexes-toolbar/indexes-toolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const IndexesToolbar: React.FunctionComponent<IndexesToolbarProps> = ({
8888
readOnly, // preferences readOnly.
8989
}) => {
9090
const isSearchManagementActive = usePreference('enableAtlasSearchIndexes');
91-
const [searchIndexesBannerDismissed] = usePersistedState(
91+
const [dismissed, setDismissed] = usePersistedState(
9292
DISMISSED_SEARCH_INDEXES_BANNER_LOCAL_STORAGE_KEY,
9393
false
9494
);
@@ -140,7 +140,7 @@ export const IndexesToolbar: React.FunctionComponent<IndexesToolbarProps> = ({
140140
</Button>
141141
{!isReadonlyView &&
142142
!isSearchManagementActive &&
143-
searchIndexesBannerDismissed &&
143+
dismissed &&
144144
atlasMetadata && (
145145
<Link
146146
href={getAtlasSearchIndexesLink({

0 commit comments

Comments
 (0)