mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-17 11:21:09 +00:00
fix missing WayPoint name
This commit is contained in:
parent
c5b0a5d282
commit
1ef4231c11
8 changed files with 7 additions and 7 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue