fix missing WayPoint name

This commit is contained in:
Brian Beck 2025-11-26 00:13:04 -08:00
parent c5b0a5d282
commit 1ef4231c11
8 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@ import { useSimGroup } from "./SimGroup";
export function WayPoint({ object }: { object: ConsoleObject }) {
const simGroup = useSimGroup();
const position = useMemo(() => getPosition(object), [object]);
const label = getProperty(object, "name").value;
const label = getProperty(object, "name")?.value;
return label ? (
<FloatingLabel position={position} opacity={0.6}>