fix build

This commit is contained in:
Sacha Weatherstone
2022-08-12 09:12:06 +10:00
parent e9b168dd18
commit d67ab30b68
5 changed files with 34 additions and 70 deletions
+3 -3
View File
@@ -12,10 +12,10 @@ import {
} from "evergreen-ui";
import { FiBluetooth, FiTerminal, FiWifi } from "react-icons/fi";
import { BLE } from "../connect/BLE.js";
import { HTTP } from "../connect/HTTP.js";
import { Serial } from "../connect/Serial.js";
import type { TabType } from "../layout/page/TabbedContent.js";
import { BLE } from "./tabs/connect/BLE.js";
import { HTTP } from "./tabs/connect/HTTP.js";
import { Serial } from "./tabs/connect/Serial.js";
export interface NewDeviceProps {
open: boolean;
@@ -12,7 +12,7 @@ export interface LocationProps {
export const Location = ({ node }: LocationProps): JSX.Element => {
return (
<Pane>
<JSONPretty data={node.data.position} />
<JSONPretty data={node?.data.position} />
</Pane>
);
};
@@ -11,7 +11,7 @@ export interface OverviewProps {
export const Overview = ({ node }: OverviewProps): JSX.Element => {
return (
<Pane>
<JSONPretty data={node.data.user} />
<JSONPretty data={node?.data.user} />
</Pane>
);
};