Commit 3e106e97 by zhaochengxiang

bug fix

parent b3047fcd
......@@ -737,10 +737,11 @@ const AssetAction = (props) => {
}
const onMetadataColumnEditableItemChange = (val, dataIndex, index) => {
const _index = (pageNum-1)*pageSize + index;
setModifyMetadataColumnList(
produce(modifyMetadataColumnList, (draft) => {
if ((draft??[]).length > index) {
draft[index][`${dataIndex}`] = val
if ((draft??[]).length > _index) {
draft[_index][`${dataIndex}`] = val
}
})
)
......
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 to comment