File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/compass-indexes/src/components/indexes-toolbar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments