From 07fde0d73ffd38b05315d3fa4f953f9bb97922b8 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Thu, 18 Jun 2020 13:32:00 +0200 Subject: [PATCH] Don't mutate usbboot drives when updating progress Change-type: patch --- lib/gui/app/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gui/app/app.ts b/lib/gui/app/app.ts index 5a4e3bec..1119ae34 100644 --- a/lib/gui/app/app.ts +++ b/lib/gui/app/app.ts @@ -264,7 +264,8 @@ function updateDriveProgress( // @ts-ignore const driveInMap = drives[drive.device]; if (driveInMap) { - driveInMap.progress = progress; + // @ts-ignore + drives[drive.device] = { ...driveInMap, progress }; setDrives(drives); } }