From f8991b785b9a1a3bd9682dd4fb1b62af68c06f0b Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 25 Aug 2021 16:32:02 +0100 Subject: [PATCH] Fix counting --- .../publication/new-publication/new-publication.page.ts | 1 - src/app/store/eventoaprovacao-store.service.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/shared/publication/new-publication/new-publication.page.ts b/src/app/shared/publication/new-publication/new-publication.page.ts index dc0322bc3..a6beb44ca 100644 --- a/src/app/shared/publication/new-publication/new-publication.page.ts +++ b/src/app/shared/publication/new-publication/new-publication.page.ts @@ -1,5 +1,4 @@ import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; -import { AnimationController, ModalController } from '@ionic/angular'; import { SafeResourceUrl } from '@angular/platform-browser'; import { PublicationsService } from 'src/app/services/publications.service'; import { Publication } from 'src/app/models/publication'; diff --git a/src/app/store/eventoaprovacao-store.service.ts b/src/app/store/eventoaprovacao-store.service.ts index 5e8f5a187..a238bee55 100644 --- a/src/app/store/eventoaprovacao-store.service.ts +++ b/src/app/store/eventoaprovacao-store.service.ts @@ -27,10 +27,10 @@ export class EventoaprovacaoStoreService { let restoreMd = localstoreService.get(this.keyNamemd, {}) let restorePr = localstoreService.get(this.keyNamepr, {}) - this._listPr = restorePr.lisMd || [] - this._listMd = restoreMd.listPr || [] + this._listPr = restorePr.listPr || [] + this._listMd = restoreMd.lisMd || [] this._countMd = parseInt(restoreMd.countListMd) || 0 - this._countPr = parseInt(restoreMd.countListPr) || 0 + this._countPr = parseInt(restorePr.countListPr) || 0 this._count = (this._countMd + this._countPr) || 0 }, 10)