diff --git a/projects/editor/src/app/services/unit.service.ts b/projects/editor/src/app/services/unit.service.ts index 158793a38da6dce35fed9c73e565d0360b258c0c..6a8260445f2a64813af2d3c7b21748afdda2c4ce 100644 --- a/projects/editor/src/app/services/unit.service.ts +++ b/projects/editor/src/app/services/unit.service.ts @@ -49,14 +49,9 @@ export class UnitService { if (unitDefinition) { try { const unitDef = JSON.parse(unitDefinition); - this.sanitizationService.checkAndRepairIDs(unitDef, this.idService, this.messageService); - if (SanitizationService.isUnitDefinitionOutdated(unitDef)) { - this.unit = new Unit(this.sanitizationService.sanitizeUnitDefinition(unitDef)); - this.messageService.showMessage(this.translateService.instant('outdatedUnit')); - } else { - this.unit = new Unit(unitDef); - } + this.unit = new Unit(unitDef); } catch (e) { + console.error(e); this.messageService.showError('Unit definition konnte nicht gelesen werden!'); this.unit = new Unit(); }