Fix fw tool crash (#1408)

This commit is contained in:
lucas lelievre
2025-04-25 17:21:25 +02:00
committed by GitHub
parent 34a782193b
commit e5ea747cde

View File

@@ -101,12 +101,12 @@ const DeviceList = ({
const StatusList = ({ status }: { status: Record<string, UpdateStatus> }) => {
const statusKeys = Object.keys(status);
const devices = useAtomValue(devicesAtom);
return statusKeys.map((id, index) => {
const val = status[id];
if (!val) throw new Error('there should always be a val');
const devices = useAtomValue(devicesAtom);
const device = devices.find(({ id: dId }) => id === dId?.id.toString());