diff --git a/projects/player/src/app/app.component.ts b/projects/player/src/app/app.component.ts index 560adaf421592958a6b4b8247f0caf719aeef0c3..9867e344449bd62fe82231e1d414ef90c926f582 100644 --- a/projects/player/src/app/app.component.ts +++ b/projects/player/src/app/app.component.ts @@ -62,7 +62,7 @@ export class AppComponent implements OnInit { console.log('player: onStart', message); if (message.unitDefinition) { const unitDefinition: Unit = UnitFactory.createUnit( - UnitDefinitionSanitizer.sanitizeUnitDefinition(JSON.parse(message.unitDefinition)) + UnitDefinitionSanitizer.sanitizeUnitDefinition(JSON.parse(message.unitDefinition))[0] ); this.unitStateElementMapperService.registerDropListValueIds(unitDefinition); this.unitStateService.unitStateElementCodes = message.unitState?.dataParts?.elementCodes ?