Skip to content
Snippets Groups Projects
Commit 64b05740 authored by jojohoch's avatar jojohoch
Browse files

[player] Refactor reading of the unit definition

This is necessary because the sanitizer returns now an array instead of
the modified unit definition.
parent df838f76
No related branches found
No related tags found
No related merge requests found
......@@ -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 ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment