raain-app 1.5.21 → 1.5.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1311,7 +1311,8 @@ class CompareManager {
1311
1311
  const dates = targetsOrdered.map((t) => t.date);
1312
1312
  const qualities = dates
1313
1313
  .filter((d) => !!d)
1314
- .map((d) => this.getRainComputationQuality(d));
1314
+ .map((d) => this.getRainComputationQuality(d))
1315
+ .filter((rcq) => !!rcq);
1315
1316
  this.buildCompares = SpeedMatrixContainer.BuildCompares(qualities, !withCompareDuplicate);
1316
1317
  return this.buildCompares;
1317
1318
  }
@@ -1425,6 +1426,7 @@ class GaugeNodeFilter extends GaugeNode {
1425
1426
  }
1426
1427
  }
1427
1428
 
1429
+ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1428
1430
  class RefreshManager {
1429
1431
  constructor(radarService, profileService, compareManager) {
1430
1432
  this.radarService = radarService;
@@ -1570,7 +1572,7 @@ class RefreshManager {
1570
1572
  async refreshPeriodInsidePolling() {
1571
1573
  let done = false;
1572
1574
  try {
1573
- done = this.refreshCheckIfDone();
1575
+ done = await this.refreshCheckIfDone();
1574
1576
  // behind refresh
1575
1577
  await this.refreshTimeframesFromRadars(done);
1576
1578
  this.refreshGlobalCompareReport(done).then((ignored) => { });
@@ -1581,10 +1583,10 @@ class RefreshManager {
1581
1583
  }
1582
1584
  return done;
1583
1585
  }
1584
- refreshCheckIfDone() {
1585
- // console.log('refreshPeriodInsidePolling', this.countsPeriod.computationsByTeam, this.countsPeriod.radarMeasures)
1586
- // return this.countsPeriod.computationsByTeam === this.countsPeriod.radarMeasures;
1587
- return this.countsPeriod.queueRunning === 0;
1586
+ async refreshCheckIfDone() {
1587
+ // TODO return this.countsPeriod.queueRunning === 0;
1588
+ await sleep(5000);
1589
+ return true;
1588
1590
  }
1589
1591
  async refreshTimeframesFromRadars(done) {
1590
1592
  if (!done) {