mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
guh
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>webui</title>
|
||||
<script type="module" crossorigin src="/assets/index-Bj3EYv2U.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-BKQ5Xwjm.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BLqBO1Eu.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
+2
-2
@@ -85,8 +85,8 @@ function DriverVideoPanel() {
|
||||
const info = roverId ? sources[roverId] : null;
|
||||
const frame = useTelemetryFrame(roverId);
|
||||
const batteryConfig = useMemo(() => {
|
||||
if (!roverId) return null;
|
||||
const record = session?.roster?.find((item) => item.id === roverId);
|
||||
if (!roverId || !session?.roster) return null;
|
||||
const record = session.roster.find((item) => String(item.id) === String(roverId));
|
||||
return record?.battery ?? null;
|
||||
}, [session?.roster, roverId]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user