mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Don't mutate usbboot drives when updating progress
Change-type: patch
This commit is contained in:
parent
a360370c4e
commit
07fde0d73f
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user