fix: handle optional indexes in InputDataModal (#4828)

This commit is contained in:
heheer 2025-05-16 15:07:33 +08:00 committed by GitHub
parent e145f63554
commit 9c59bc2c17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {