Skip to content

Commit fe8086a

Browse files
committed
change
1 parent c4e3833 commit fe8086a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pcweb/components/docpage/navbar/typesense.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class TypesenseSearchState(rx.State):
8888
search_query: rx.Field[str] = rx.field("")
8989
search_results: rx.Field[list[dict]] = rx.field([])
9090
is_searching: rx.Field[bool] = rx.field(False)
91-
show_results: bool = False
91+
_show_results: bool = False
9292
selected_filter: rx.Field[str] = rx.field("All")
9393

9494
@rx.event(temporal=True)
@@ -135,7 +135,7 @@ async def search_docs(self, query: str):
135135
formatted_results = self._format_search_results(results)
136136
async with self:
137137
self.search_results = formatted_results
138-
self.show_results = True
138+
self._show_results = True
139139
except Exception:
140140
async with self:
141141
self._clear_search_results()
@@ -175,7 +175,7 @@ async def _perform_unified_search(self, query: str) -> dict:
175175
def _clear_search_results(self):
176176
"""Clear search results and hide results display."""
177177
self.search_results = []
178-
self.show_results = False
178+
self._show_results = False
179179

180180
def _format_search_results(self, result: dict) -> list[dict]:
181181
"""Format search results for display with enhanced component info."""

0 commit comments

Comments
 (0)