mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
fix(initial-sync): Fix sync sidebar showing all the time
This commit is contained in:
parent
99bd3c1e69
commit
b4b67c65c9
1 changed files with 6 additions and 2 deletions
|
@ -29,8 +29,12 @@ class InitialSyncActivity extends React.Component
|
||||||
incomplete = 0
|
incomplete = 0
|
||||||
|
|
||||||
for acctId, state of @state.sync
|
for acctId, state of @state.sync
|
||||||
for model, modelState of state
|
for modelName of NylasSyncStatusStore.ModelsForSync
|
||||||
incomplete += 1 unless modelState.complete
|
modelState = state[modelName]
|
||||||
|
continue unless modelState
|
||||||
|
|
||||||
|
if not modelState.complete
|
||||||
|
incomplete += 1
|
||||||
if modelState.count
|
if modelState.count
|
||||||
count += modelState.count / 1
|
count += modelState.count / 1
|
||||||
fetched += modelState.fetched / 1
|
fetched += modelState.fetched / 1
|
||||||
|
|
Loading…
Reference in a new issue