mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 20:08:19 +00:00
optimized code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user