mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 10:46:31 +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
|
// @ts-ignore
|
||||||
const driveInMap = drives[drive.device];
|
const driveInMap = drives[drive.device];
|
||||||
if (driveInMap) {
|
if (driveInMap) {
|
||||||
driveInMap.progress = progress;
|
// @ts-ignore
|
||||||
|
drives[drive.device] = { ...driveInMap, progress };
|
||||||
setDrives(drives);
|
setDrives(drives);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user