Fix build errors
This commit is contained in:
@@ -2,8 +2,8 @@ import { useDevice } from "@app/core/stores/deviceStore.js";
|
|||||||
import type { Protobuf } from "@meshtastic/js";
|
import type { Protobuf } from "@meshtastic/js";
|
||||||
|
|
||||||
export interface TraceRouteProps {
|
export interface TraceRouteProps {
|
||||||
from: Protobuf.Mesh.NodeInfo;
|
from?: Protobuf.Mesh.NodeInfo;
|
||||||
to: Protobuf.Mesh.NodeInfo;
|
to?: Protobuf.Mesh.NodeInfo;
|
||||||
route: Array<number>;
|
route: Array<number>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,8 @@ export const MessagesPage = (): JSX.Element => {
|
|||||||
{
|
{
|
||||||
icon: WaypointsIcon,
|
icon: WaypointsIcon,
|
||||||
async onClick() {
|
async onClick() {
|
||||||
await connection?.traceRoute(nodes.get(activeChat)?.num).then(() =>
|
if (nodes.get(activeChat)?.num === undefined) return;
|
||||||
|
await connection?.traceRoute(nodes.get(activeChat)?.num!).then(() =>
|
||||||
toast({
|
toast({
|
||||||
title: `Traceroute sent.`,
|
title: `Traceroute sent.`,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user