diff --git a/src/page/Workspace/SideBar/components/SideTabs/index.tsx b/src/page/Workspace/SideBar/components/SideTabs/index.tsx index 8550b6e27..1296fdf35 100644 --- a/src/page/Workspace/SideBar/components/SideTabs/index.tsx +++ b/src/page/Workspace/SideBar/components/SideTabs/index.tsx @@ -84,7 +84,7 @@ export default function SideTabs(props: IProps) { ); })} - + {selectTab?.actions?.map((action) => { if ('render' in action) { return action.render(); @@ -100,12 +100,12 @@ export default function SideTabs(props: IProps) {
{tabs .map((tab) => { - if (loadedKeys.current.has(tab.key) || selectTab.key === tab.key) { + if (loadedKeys.current.has(tab.key) || selectTab?.key === tab.key) { return (
{tab?.render?.()}