Commit 48208148 by zhaochengxiang

bug fix

parent a7ee8cc3
......@@ -110,20 +110,20 @@ const UpdateTreeItemModal = (props) => {
if (type === 'add' && values.action==='root') {
payload = {
...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
parentId: rootId
};
} else if (type === 'add') {
payload = {
...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
parentId: item.id
};
} else {
payload = {
...item,
...values,
rangeList: (values.rangeList??'').replace(/[,,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
rangeList: (values.rangeList??'').replace(/[,,, ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '),
}
}
......
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