mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
fix: handle optional indexes in InputDataModal (#4828)
This commit is contained in:
@@ -148,7 +148,7 @@ const InputDataModal = ({
|
||||
q: e.q,
|
||||
a: currentTab === TabEnum.qa ? e.a : '',
|
||||
// Contains no default index
|
||||
indexes: e.indexes.filter((item) => !!item.text?.trim())
|
||||
indexes: e.indexes?.filter((item) => !!item.text?.trim())
|
||||
});
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user