We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4f44ad + 8368a52 commit e1bb469Copy full SHA for e1bb469
backend/infrahub/api/internal.py
@@ -161,6 +161,8 @@ class SearchResultAPI(BaseModel):
161
async def search_docs(
162
query: str, limit: int | None = None, _: AccountSession = Depends(get_current_user)
163
) -> list[SearchResultAPI]:
164
+ if not query:
165
+ return []
166
smart_query = smart_queries(query)
167
search_results = search_docs_loader.heading_index.search(smart_query)
168
heading_results = [
0 commit comments