Commit 9c59bc2c by heheer Committed by GitHub

fix: handle optional indexes in InputDataModal (#4828)

parent e145f635
...@@ -148,7 +148,7 @@ const InputDataModal = ({ ...@@ -148,7 +148,7 @@ const InputDataModal = ({
q: e.q, q: e.q,
a: currentTab === TabEnum.qa ? e.a : '', a: currentTab === TabEnum.qa ? e.a : '',
// Contains no default index // Contains no default index
indexes: e.indexes.filter((item) => !!item.text?.trim()) indexes: e.indexes?.filter((item) => !!item.text?.trim())
}); });
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment