Skip to content

Commit

Permalink
Merge pull request #40 from getditto/updateDittoSwiftTools
Browse files Browse the repository at this point in the history
Fix search bar logic for data browser
  • Loading branch information
texasRanger09 authored Mar 22, 2023
2 parents f69d8b7 + 6da0134 commit 6a60093
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 6a60093

Please sign in to comment.