Skip to content

Commit 7192c5d

Browse files
authored
Merge pull request #2070 from bcgov/hotfix/ALCS-2478-add-new-date-on-conditions-page-DEV-MERGE
ALCS-2478 Allow to add a new date on conditions component
2 parents acec672 + dfd0f66 commit 7192c5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

alcs-frontend/src/app/features/application/decision/conditions/condition/condition.component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ export class ConditionComponent implements OnInit, AfterViewInit {
295295
this.dataSource = new MatTableDataSource<ApplicationDecisionConditionDateWithIndex>(
296296
this.addIndex(this.sortDates(this.dates)),
297297
);
298-
const conditionNewStatus = await this.decisionService.getStatus(this.condition.uuid);
299-
this.condition.status = conditionNewStatus.status;
300-
this.setPillLabel(this.condition.status);
301298
} else {
302-
console.error('Date with specified UUID not found');
299+
await this.addNewDate();
303300
}
301+
const conditionNewStatus = await this.decisionService.getStatus(this.condition.uuid);
302+
this.condition.status = conditionNewStatus.status;
303+
this.setPillLabel(this.condition.status);
304304
}
305305

306306
async onDeleteDate(dateUuid: string) {

0 commit comments

Comments
 (0)