Skip to content

Commit

Permalink
Fix search bar logic for data browser
Browse files Browse the repository at this point in the history
  • Loading branch information
texasRanger09 committed Mar 22, 2023
1 parent f69d8b7 commit 6da0134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DittoDataBrowser/DocumentsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class DocumentsViewModel : ObservableObject {
collectionObserver = nil

if(queryString.isEmpty) {
findWithFilter_LiveQuery(queryString: queryString)
findAll_LiveQuery()
}
else {
findAll_LiveQuery()
findWithFilter_LiveQuery(queryString: queryString)
}
}
}

0 comments on commit 6da0134

Please sign in to comment.