mirror of
https://github.com/meshtastic/web.git
synced 2026-06-12 07:25:03 -04:00
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";
|
||||
|
||||
export interface TraceRouteProps {
|
||||
from: Protobuf.Mesh.NodeInfo;
|
||||
to: Protobuf.Mesh.NodeInfo;
|
||||
from?: Protobuf.Mesh.NodeInfo;
|
||||
to?: Protobuf.Mesh.NodeInfo;
|
||||
route: Array<number>;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,8 @@ export const MessagesPage = (): JSX.Element => {
|
||||
{
|
||||
icon: WaypointsIcon,
|
||||
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({
|
||||
title: `Traceroute sent.`,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user