fix(search): Switching accounts while searching no longer breaks app

Fixes #850
This commit is contained in:
Ben Gotow 2015-12-28 12:16:56 -08:00
parent 8c965e4d7b
commit 608060ed6d

View file

@ -113,7 +113,7 @@ class ThreadListStore extends NylasStore
accountMatcher = (m) ->
m.attribute() is Thread.attributes.accountId and m.value() is accountId
return if @_view and _.find(@_view.matchers(), accountMatcher)
return if @_view instanceof DatabaseView and _.find(@_view.matchers(), accountMatcher)
@createView()
_onDataChanged: (change) ->