mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 02:12:38 +00:00
Fix navbar (#2273)
* fix: phone navbar cannot scroll; fix: file uplaod process error * perf: select repeat file
This commit is contained in:
@@ -124,7 +124,7 @@ const EditForm = ({
|
||||
const selectedModel =
|
||||
llmModelList.find((item) => item.model === appForm.aiSettings.model) ?? llmModelList[0];
|
||||
const tokenLimit = useMemo(() => {
|
||||
return selectedModel.quoteMaxToken || 3000;
|
||||
return selectedModel?.quoteMaxToken || 3000;
|
||||
}, [selectedModel.quoteMaxToken]);
|
||||
|
||||
return (
|
||||
|
@@ -154,7 +154,7 @@ const CollectionCard = () => {
|
||||
useQuery(
|
||||
['refreshCollection'],
|
||||
() => {
|
||||
getData(1);
|
||||
getData(pageNum);
|
||||
if (datasetDetail.status === DatasetStatusEnum.syncing) {
|
||||
loadDatasetDetail(datasetDetail._id);
|
||||
}
|
||||
|
@@ -98,7 +98,9 @@ const FileSelector = ({
|
||||
item.id === fileId
|
||||
? {
|
||||
...item,
|
||||
uploadedFileRate: e
|
||||
uploadedFileRate: item.uploadedFileRate
|
||||
? Math.max(e, item.uploadedFileRate)
|
||||
: e
|
||||
}
|
||||
: item
|
||||
)
|
||||
|
Reference in New Issue
Block a user