Browse Source

avoid fetch data already retrieved (last declaration) again and again

master
Schoumi 11 months ago
parent
commit
8279392d37
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/index.js

+ 1
- 0
src/index.js View File

@@ -171,6 +171,7 @@ async function getAllDeclaration(params, declarationList) {
if (exist) {
let lastSaved = declarationList.indexOf(accData.lastSaved)
if (lastSaved !== -1) lastPeriod = lastSaved
if (lastPeriod === 0) lastPeriod = -1
}
for (let i = lastPeriod; i >= 0; i--) {
try {

Loading…
Cancel
Save