Don't mutate usbboot drives when updating progress

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-06-18 13:32:00 +02:00
parent a360370c4e
commit 07fde0d73f

View File

@ -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);
}
}