mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +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(
|
||||
store.getState().toJS().failedDeviceErrors,
|
||||
);
|
||||
if (failedDeviceErrorsMap.has(device.device)) {
|
||||
// Only store the first error
|
||||
return;
|
||||
}
|
||||
failedDeviceErrorsMap.set(device.device, {
|
||||
description: device.description,
|
||||
device: device.device,
|
||||
|
Loading…
x
Reference in New Issue
Block a user