diff --git a/src/app/pages/system/bootenv/bootenv-replace/bootenv-replace-form.component.ts b/src/app/pages/system/bootenv/bootenv-replace/bootenv-replace-form.component.ts index 8a2902da3ca..bcf2dab7b23 100644 --- a/src/app/pages/system/bootenv/bootenv-replace/bootenv-replace-form.component.ts +++ b/src/app/pages/system/bootenv/bootenv-replace/bootenv-replace-form.component.ts @@ -52,7 +52,6 @@ export class BootEnvReplaceFormComponent { entityForm.submitFunction = this.submitFunction; } submitFunction(entityForm) { - const payload = this.pk.substring(5, this.pk.length); - return this.ws.call('boot.replace', [payload, entityForm.dev]); + return this.ws.call('boot.replace', [this.pk, entityForm.dev]); } } diff --git a/src/app/pages/system/bootenv/bootenv-status/bootenv-status.component.ts b/src/app/pages/system/bootenv/bootenv-status/bootenv-status.component.ts index 6a68fafa54d..a50349a6657 100644 --- a/src/app/pages/system/bootenv/bootenv-status/bootenv-status.component.ts +++ b/src/app/pages/system/bootenv/bootenv-status/bootenv-status.component.ts @@ -75,7 +75,6 @@ export class BootStatusListComponent implements OnInit { } detach(disk: any) { - disk = disk.substring(5, disk.length); this.loader.open(); this.busy = this.ws.call('boot.detach', [disk]).subscribe( (res) => {