From 48dd17b2c634a84ab8972288b42882ccd1f1dc2a Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Wed, 15 Nov 2023 16:33:58 +0100 Subject: [PATCH] Fix --- frontend/src/models/Garage.model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/models/Garage.model.ts b/frontend/src/models/Garage.model.ts index 84d413d0..ca32e971 100644 --- a/frontend/src/models/Garage.model.ts +++ b/frontend/src/models/Garage.model.ts @@ -36,6 +36,7 @@ class Garage { ...defaultSlot, ...raw, robot, + order: null, }; }); console.log('Robot Garage was loaded from local storage'); @@ -123,6 +124,8 @@ class Garage { if (attributes.activeOrderId && attributes.activeOrderId != null) { this.slots[index].activeOrderId = attributes.activeOrderId; this.slots[index].activeOrderShortAlias = attributes.shortAlias; + this.slots[index].lastOrderId = null; + this.slots[index].lastOrderShortAlias = null; } this.triggerHook('onRobotUpdate'); this.save();