Skip to content

Commit

Permalink
Handle missing ndoedata in service nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartoxian committed Feb 22, 2024
1 parent 0464576 commit 8b4d357
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -21,6 +22,10 @@ export const KurtosisServiceNode = memo(
const { data } = useVariableContext();
const nodeData = data[id] as KurtosisServiceNodeData;

if (!isDefined(nodeData)) {
return null;
}

return (
<KurtosisNode id={id} selected={selected} minWidth={650} maxWidth={800}>
<Flex gap={"16px"}>
Expand Down

0 comments on commit 8b4d357

Please sign in to comment.