mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-21 01:21:25 -08:00
Fix fw tool crash (#1408)
This commit is contained in:
1 parent
34a782193b
commit
e5ea747cde
1 file changed
+1
-1
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user