From 9a7ae21bd9dcf066d2fccd0ec3bd311eaca63feb Mon Sep 17 00:00:00 2001 From: tplevko Date: Fri, 9 Feb 2024 15:46:14 +0100 Subject: [PATCH] fix - TypeError: props.tab is undefined --- packages/ui/src/components/PropertiesModal/PropertiesModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/PropertiesModal/PropertiesModal.tsx b/packages/ui/src/components/PropertiesModal/PropertiesModal.tsx index f570c1525..62c485a6c 100644 --- a/packages/ui/src/components/PropertiesModal/PropertiesModal.tsx +++ b/packages/ui/src/components/PropertiesModal/PropertiesModal.tsx @@ -35,7 +35,7 @@ export const PropertiesModal: FunctionComponent = (props) } }, [props.tile]); const [activeTabKey, setActiveTabKey] = useState(0); - const [activeTab, setActiveTab] = useState(); + const [activeTab, setActiveTab] = useState(tabs[0]); useEffect(() => { setActiveTabKey(0);