Fix gamesystem undefined error in gamesystem-editor
All checks were successful
E2E Testing / test (push) Successful in 1m31s

This commit is contained in:
Sebastian Böckelmann 2024-04-19 20:01:22 +02:00
parent 5b1e711a11
commit 48478d340a

View File

@ -3,12 +3,12 @@
<app-product-gamesystem-editor *ngIf="!isSimpleGamesystem()" [templateElement]="templateElement" [gamesystem]="convertGamesystemToProductGamesystem()" <app-product-gamesystem-editor *ngIf="!isSimpleGamesystem()" [templateElement]="templateElement" [gamesystem]="convertGamesystemToProductGamesystem()"
(onOpenGamesystemEditor)="onOpenGamesystemEditor($event)"></app-product-gamesystem-editor> (onOpenGamesystemEditor)="onOpenGamesystemEditor($event)"></app-product-gamesystem-editor>
<mat-expansion-panel> <mat-expansion-panel *ngIf="gamesystem != undefined">
<mat-expansion-panel-header> <mat-expansion-panel-header>
<mat-panel-title>Product Generation Settings</mat-panel-title> <mat-panel-title>Product Generation Settings</mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>
<div *ngIf="isGamesystemTemplate()"> <div *ngIf="isGamesystemTemplate()">
<mat-checkbox [(ngModel)]="convertGamesystemToTemplate(gamesystem)!.symmetric">Use symmetric Productgenerators</mat-checkbox> <mat-checkbox [(ngModel)]="convertGamesystemToTemplate(gamesystem)!.symmetric">Use symmetric Productgenerators</mat-checkbox>
</div> </div>
<mat-checkbox [(ngModel)]="gamesystem.generateIsolatedStates">Generate Isolated ProductStates</mat-checkbox> <mat-checkbox [(ngModel)]="gamesystem!.generateIsolatedStates">Generate Isolated ProductStates</mat-checkbox>
</mat-expansion-panel> </mat-expansion-panel>