fix(sync-status): Ignore keys that arent models when check sync status

This commit is contained in:
Juan Tejada 2016-04-05 11:13:40 -07:00
parent 0b4127bc4b
commit 2d8f3ec2b0

View file

@ -30,6 +30,7 @@ class NylasSyncStatusStore extends NylasStore
if model
return @_statesByAccount[acctId][model]?.complete ? false
for _model, modelState of @_statesByAccount[acctId]
continue if _model in ['longConnectionStatus', 'nextRetryTimestamp']
return false if not modelState.complete
return true