Skip to content

Commit

Permalink
Fix "No results for {query}" message
Browse files Browse the repository at this point in the history
Usage of `vm.search.query` in the `<sidebar-content>` template was
incorrect. `vm.search` is always set and `query` is a function that
returns a string, not a string.

Fixes #9
  • Loading branch information
robertknight committed Jun 12, 2018
1 parent f609e76 commit 01915c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sidebar/templates/sidebar-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
filter-active="!!vm.search.query()"
filter-match-count="vm.visibleCount()"
on-clear-selection="vm.clearSelection()"
search-query="vm.search ? vm.search.query : ''"
search-query="vm.search.query()"
selection-count="vm.selectedAnnotationCount()"
total-count="vm.topLevelThreadCount()"
selected-tab="vm.selectedTab"
Expand Down

0 comments on commit 01915c0

Please sign in to comment.