mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +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)
|
@_setCategory(category)
|
||||||
|
|
||||||
_onSearchQueryCommitted: (query="") ->
|
_onSearchQueryCommitted: (query="") ->
|
||||||
|
if typeof(query) != "string"
|
||||||
|
query = query[0].all
|
||||||
if query.trim().length > 0 and @_category
|
if query.trim().length > 0 and @_category
|
||||||
@_categoryBeforeSearch = @_category
|
@_categoryBeforeSearch = @_category
|
||||||
@_setCategory(null)
|
@_setCategory(null)
|
||||||
|
|
Loading…
Reference in a new issue