refactor(frontend): fix base template component

This commit is contained in:
Rachel Powers
2024-05-30 17:53:48 -07:00
parent 7b6909a323
commit 10997d4185
10 changed files with 495 additions and 125 deletions

View File

@@ -432,7 +432,7 @@ export class VMDeviceCard extends VMTemplateDBMixin(
const val = parseIntWithHexOrBinary(input.value);
if (!isNaN(val)) {
window.VM.get().then((vm) => {
if (!vm.changeDeviceID(this.objectID, val)) {
if (!vm.changeObjectID(this.objectID, val)) {
input.value = this.objectID.toString();
}
});