Skip to content

Commit f86de14

Browse files
committed
Prefer order prop connected at block component itself
Already connected, so just need to remove explicit prop from parent
1 parent 1150c76 commit f86de14

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

editor/modes/visual-editor/index.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ import './style.scss';
1111
import Inserter from 'components/inserter';
1212
import VisualEditorBlock from './block';
1313

14-
function VisualEditor( { blocks, blockOrder } ) {
14+
function VisualEditor( { blocks } ) {
1515
return (
1616
<div className="editor-visual-editor">
1717
<div className="editor-visual-editor__blocks">
1818
{ map( blocks, ( block, uid ) => (
19-
<VisualEditorBlock
20-
key={ uid }
21-
uid={ uid }
22-
order={ blockOrder.indexOf( uid ) } />
19+
<VisualEditorBlock key={ uid } uid={ uid } />
2320
) ) }
2421
</div>
2522
<Inserter />
@@ -28,6 +25,5 @@ function VisualEditor( { blocks, blockOrder } ) {
2825
}
2926

3027
export default connect( ( state ) => ( {
31-
blocks: state.blocks.byUid,
32-
blockOrder: state.blocks.order
28+
blocks: state.blocks.byUid
3329
} ) )( VisualEditor );

0 commit comments

Comments
 (0)