Skip to content

Commit

Permalink
Merge pull request #1857 from ksprabin/EMBCESSMOD-4655
Browse files Browse the repository at this point in the history
EMBCESSMOD-4655
  • Loading branch information
KyleKayfish authored Jan 25, 2024
2 parents 666d576 + fbc6f1b commit 2f3f6d7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { SupportDetailsService } from './support-details.service';
import { MatDialog } from '@angular/material/dialog';
import { DialogComponent } from 'src/app/shared/components/dialog/dialog.component';
import { InformationDialogComponent } from 'src/app/shared/components/dialog-components/information-dialog/information-dialog.component';
import { Support, SupportSubCategory } from 'src/app/core/api/models';
import { Support, SupportStatus, SupportSubCategory } from 'src/app/core/api/models';
import { EvacueeSessionService } from 'src/app/core/services/evacuee-session.service';
import { AlertService } from 'src/app/shared/components/alert/alert.service';
import { ReferralCreationService } from '../../step-supports/referral-creation.service';
Expand Down Expand Up @@ -399,9 +399,9 @@ export class SupportDetailsComponent implements OnInit, OnDestroy {
this.supportDetailsForm.markAllAsTouched();
return;
}

let existingSupports = this.existingSupports;

let existingSupports = this.existingSupports.filter((x) => x.status !== SupportStatus.Cancelled.toString());
if (this.editFlag) {
existingSupports = existingSupports.filter(
(s) => s !== this.stepSupportsService.selectedSupportDetail
Expand Down

0 comments on commit 2f3f6d7

Please sign in to comment.