diff --git a/web/src/pages/home/applications.tsx b/web/src/pages/home/applications.tsx index 46b6654bc..d9208640d 100644 --- a/web/src/pages/home/applications.tsx +++ b/web/src/pages/home/applications.tsx @@ -115,10 +115,12 @@ export function Applications() { {listLength <= 0 && !loading && ( - handleNavigate({ isCreate: true })} - /> +
+ handleNavigate({ isCreate: true })} + /> +
)} {/* */} diff --git a/web/src/pages/home/datasets.tsx b/web/src/pages/home/datasets.tsx index 72f4abdc0..e5e27449a 100644 --- a/web/src/pages/home/datasets.tsx +++ b/web/src/pages/home/datasets.tsx @@ -57,11 +57,13 @@ export function Datasets() { } )} - {kbs?.length <= 0 && ( - navigateToDatasetList({ isCreate: true })} - /> + {!(kbs && kbs?.length > 0) && ( +
+ navigateToDatasetList({ isCreate: true })} + /> +
)} //