Commit 3e106e97 by zhaochengxiang

bug fix

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