Skip to content

Commit 2d9e394

Browse files
Copilotrenemadsen
andcommitted
Add form existence check to GeneralTabComponent template
- Added *ngIf="assignedSiteForm" to wrapper div to prevent rendering before form is initialized - This ensures the component only renders after ngOnInit() has created the form - Fixes issue where tabs were not visible in Cypress e2e tests - The form is created in ngOnInit() but template binding happens immediately on component creation Co-authored-by: renemadsen <[email protected]>
1 parent 42ebf66 commit 2d9e394

File tree

1 file changed

+1
-1
lines changed
  • eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/assigned-site/tabs

1 file changed

+1
-1
lines changed

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/assigned-site/tabs/general-tab.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div [formGroup]="assignedSiteForm">
1+
<div [formGroup]="assignedSiteForm" *ngIf="assignedSiteForm">
22
<div class="d-flex flex-row" *ngIf="!data.resigned && isFirstUser">
33
<!-- data.useGoogleSheetAsDefault -->
44
<mat-checkbox class="p-1"

0 commit comments

Comments
 (0)