diff --git a/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.spec.ts b/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.spec.ts index c1e7bdfe98..bdc23f8806 100644 --- a/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.spec.ts +++ b/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.spec.ts @@ -10,6 +10,9 @@ import { selectCommitteeAccount } from 'app/store/committee-account.selectors'; import { selectUserLoginData } from 'app/store/login.selectors'; import { ConfirmationService, MessageService } from 'primeng/api'; import { of } from 'rxjs'; +import { ToolbarModule } from 'primeng/toolbar'; +import { TableModule } from 'primeng/table'; +import { RouterTestingModule } from '@angular/router/testing'; import { CreateF3xStep3Component } from './create-f3x-step3.component'; @@ -26,6 +29,7 @@ describe('CreateF3xStep4Component', () => { token: 'jwttokenstring', }; await TestBed.configureTestingModule({ + imports: [ToolbarModule, TableModule, RouterTestingModule], declarations: [CreateF3xStep3Component], providers: [ MessageService, @@ -50,6 +54,7 @@ describe('CreateF3xStep4Component', () => { transaction_type_identifier: 'OFFSET_TO_OPEX', }) ), + getTableData: () => of([]), }, }, { diff --git a/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.ts b/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.ts index 0ea55d8619..50c1b357a3 100644 --- a/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.ts +++ b/front-end/src/app/reports/f3x/create-workflow/create-f3x-step3.component.ts @@ -1,11 +1,6 @@ import { Component, ElementRef, OnInit, Pipe, PipeTransform } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; -import { Observable } from 'rxjs'; -import { Store } from '@ngrx/store'; -import { refreshCommitteeAccountDetailsAction } from '../../../store/committee-account.actions'; -import { selectCommitteeAccount } from 'app/store/committee-account.selectors'; import { F3xSummary } from 'app/shared/models/f3x-summary.model'; -import { CommitteeAccount } from 'app/shared/models/committee-account.model'; import { TableListBaseComponent } from 'app/shared/components/table-list-base/table-list-base.component'; import { Transaction } from 'app/shared/interfaces/transaction.interface'; import { ConfirmationService, MessageService } from 'primeng/api'; @@ -17,7 +12,6 @@ import { TransactionService } from 'app/shared/services/transaction.service'; }) export class CreateF3xStep3Component extends TableListBaseComponent implements OnInit { report: F3xSummary | undefined; - committeeAccount$: Observable = this.store.select(selectCommitteeAccount); constructor( protected override messageService: MessageService, @@ -25,16 +19,13 @@ export class CreateF3xStep3Component extends TableListBaseComponent protected override elementRef: ElementRef, protected override itemService: TransactionService, private activatedRoute: ActivatedRoute, - private store: Store ) { super(messageService, confirmationService, elementRef); } ngOnInit(): void { - // Refresh committee account details whenever page loads - this.store.dispatch(refreshCommitteeAccountDetailsAction()); - this.report = this.activatedRoute.snapshot.data['report']; + this.loading = true; } protected getEmptyItem(): Transaction {