mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
query trimming now works properly on searchquerycommitted
Summary: query trimming was broken due to searchquerycommited passing an object instead of a string Test Plan: tested manually. Unit tests Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1763
This commit is contained in:
parent
7ad046a8d3
commit
ec313e54cf
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class FocusedCategoryStore extends NylasStore
|
|||
@_setCategory(category)
|
||||
|
||||
_onSearchQueryCommitted: (query="") ->
|
||||
if typeof(query) != "string"
|
||||
query = query[0].all
|
||||
if query.trim().length > 0 and @_category
|
||||
@_categoryBeforeSearch = @_category
|
||||
@_setCategory(null)
|
||||
|
|
Loading…
Reference in a new issue