Skip to content

Commit dc714f7

Browse files
committed
fix: Correct queryStats derived function
1 parent 381bfe6 commit dc714f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/lib/components/ResultsContainer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
openEntryId = openEntryId === id ? null : id;
1616
}
1717
18-
const queryStats = $derived(() => {
19-
if (!appState.queryInfo || appState.results.length === 0) {
18+
const queryStats = $derived.by(() => {
19+
if (!appState.queryInfo || appState.queryInfo.totalResults === 0) {
2020
return null;
2121
}
2222

0 commit comments

Comments
 (0)