From 38682754a1602c6dec1df8b878884a3e9ef998df Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 14 Aug 2018 09:35:42 -0300 Subject: [PATCH] using index const --- src/block-management/block-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block-management/block-manager.js b/src/block-management/block-manager.js index 896a2dfa32080..1158e7b3a6464 100644 --- a/src/block-management/block-manager.js +++ b/src/block-management/block-manager.js @@ -115,7 +115,7 @@ export default class BlockManager extends React.Component // 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 );