From 8b4d3577b4b45d0728d3ca2b4f4615b56042d002 Mon Sep 17 00:00:00 2001 From: Ben Gazzard Date: Thu, 22 Feb 2024 09:29:46 +0000 Subject: [PATCH] Handle missing ndoedata in service nodes --- .../components/enclaveBuilder/KurtosisServiceNode.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/enclave-manager/web/packages/app/src/emui/enclaves/components/enclaveBuilder/KurtosisServiceNode.tsx b/enclave-manager/web/packages/app/src/emui/enclaves/components/enclaveBuilder/KurtosisServiceNode.tsx index 1eeae2a203..8e2b236d55 100644 --- a/enclave-manager/web/packages/app/src/emui/enclaves/components/enclaveBuilder/KurtosisServiceNode.tsx +++ b/enclave-manager/web/packages/app/src/emui/enclaves/components/enclaveBuilder/KurtosisServiceNode.tsx @@ -1,4 +1,5 @@ import { Flex, Tab, TabList, TabPanel, TabPanels, Tabs } from "@chakra-ui/react"; +import { isDefined } from "kurtosis-ui-components"; import { memo } from "react"; import { NodeProps } from "reactflow"; import { BooleanArgumentInput } from "../form/BooleanArgumentInput"; @@ -21,6 +22,10 @@ export const KurtosisServiceNode = memo( const { data } = useVariableContext(); const nodeData = data[id] as KurtosisServiceNodeData; + if (!isDefined(nodeData)) { + return null; + } + return (