mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
Fix exception "Cannot read property 'replaceModel' of null"
This commit is contained in:
parent
b043c30565
commit
e29335ae91
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ class QuerySubscription
|
|||
return @log("Update (#{version}) - No missing Ids") if ids.length is 0
|
||||
@log("Update (#{version}) - Fetching missing Ids: #{ids}")
|
||||
return DatabaseStore.findAll(@_query._klass, {id: ids}).then (models) =>
|
||||
return @log("Update (#{version}) - Cancelled @ Step 1.5") unless version is @_version
|
||||
@log("Update (#{version}) - Fetched missing Ids")
|
||||
@_set.replaceModel(m) for m in models
|
||||
.then =>
|
||||
|
|
Loading…
Reference in a new issue