fix: api dataset (#6551)

* fix: api dataset

* Update packages/global/core/chat/type.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Archer
2026-03-12 20:51:00 +08:00
committed by GitHub
parent 57489c2f8c
commit 4b4f856e16
19 changed files with 43 additions and 22 deletions
@@ -66,7 +66,12 @@ const CustomAPIFileInput = () => {
});
},
{
refreshDeps: [datasetDetail._id, datasetDetail.apiServer, parent, searchKey],
refreshDeps: [
datasetDetail._id,
datasetDetail.apiDatasetServer?.apiServer,
parent,
searchKey
],
throttleWait: 500,
manual: false
}
@@ -169,7 +174,7 @@ const CustomAPIFileInput = () => {
setPaths(paths.slice(0, index + 1));
}}
/>
{datasetDetail.apiServer && (
{datasetDetail?.apiDatasetServer?.apiServer && (
<Box w={'240px'}>
<SearchInput
value={searchKey}