1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 20:08:19 +00:00

optimized code

This commit is contained in:
shanshuirenjia
2019-05-07 21:15:37 +08:00
parent 615330980f
commit 3bfaea8914
3 changed files with 9 additions and 7 deletions

View File

@@ -123,11 +123,10 @@ class AppMain extends React.Component {
this.props.onContentChanged();
}
handleGridRowsUpdated = ({ cellKey, fromRow, updated }) => {
handleGridRowsUpdated = ({fromRow, updated}) => {
let rowIdx = fromRow;
let value = this.dTableStore.modifyCell(rowIdx, cellKey, updated[cellKey]);
let value = this.dTableStore.modifyCell(rowIdx, updated);
this.setState({value});
this.forceUpdate();
this.props.onContentChanged();
}