+2
-1
@@ -63,9 +63,10 @@ const NodesPage = (): JSX.Element => {
|
|||||||
|
|
||||||
const handleLocation = useCallback(
|
const handleLocation = useCallback(
|
||||||
(location: Types.PacketMetadata<Protobuf.Mesh.Position>) => {
|
(location: Types.PacketMetadata<Protobuf.Mesh.Position>) => {
|
||||||
|
if (location.to.valueOf() !== hardware.myNodeNum) return;
|
||||||
setSelectedLocation(location);
|
setSelectedLocation(location);
|
||||||
},
|
},
|
||||||
[],
|
[hardware.myNodeNum],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user