mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
Only store the first error for each target
Changelog-entry: Show the first error for each drive (not the last) Change-type: patch
This commit is contained in:
parent
fc45df270a
commit
c54856a616
@ -85,6 +85,10 @@ export function addFailedDeviceError({
|
|||||||
const failedDeviceErrorsMap = new Map(
|
const failedDeviceErrorsMap = new Map(
|
||||||
store.getState().toJS().failedDeviceErrors,
|
store.getState().toJS().failedDeviceErrors,
|
||||||
);
|
);
|
||||||
|
if (failedDeviceErrorsMap.has(device.device)) {
|
||||||
|
// Only store the first error
|
||||||
|
return;
|
||||||
|
}
|
||||||
failedDeviceErrorsMap.set(device.device, {
|
failedDeviceErrorsMap.set(device.device, {
|
||||||
description: device.description,
|
description: device.description,
|
||||||
device: device.device,
|
device: device.device,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user