Skip to content

Commit

Permalink
using index const
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Aug 14, 2018
1 parent 10e7edd commit 3868275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class BlockManager extends React.Component<PropsType, StateType>
// Update datasource UI
const index = this.getDataSourceIndexFromUid( clientId );
const dataSource = this.state.dataSource;
const block = dataSource.get( this.getDataSourceIndexFromUid( clientId ) );
const block = dataSource.get( index );
block.attributes = attributes;
// Update Redux store
this.props.onChange( clientId, attributes );
Expand Down

0 comments on commit 3868275

Please sign in to comment.