mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -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" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>webui</title>
|
<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">
|
<link rel="stylesheet" crossorigin href="/assets/index-BLqBO1Eu.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+2
-2
@@ -85,8 +85,8 @@ function DriverVideoPanel() {
|
|||||||
const info = roverId ? sources[roverId] : null;
|
const info = roverId ? sources[roverId] : null;
|
||||||
const frame = useTelemetryFrame(roverId);
|
const frame = useTelemetryFrame(roverId);
|
||||||
const batteryConfig = useMemo(() => {
|
const batteryConfig = useMemo(() => {
|
||||||
if (!roverId) return null;
|
if (!roverId || !session?.roster) return null;
|
||||||
const record = session?.roster?.find((item) => item.id === roverId);
|
const record = session.roster.find((item) => String(item.id) === String(roverId));
|
||||||
return record?.battery ?? null;
|
return record?.battery ?? null;
|
||||||
}, [session?.roster, roverId]);
|
}, [session?.roster, roverId]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user