Commit f86de14 1 parent 1150c76 commit f86de14 Copy full SHA for f86de14
File tree 1 file changed +3
-7
lines changed
editor/modes/visual-editor
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,12 @@ import './style.scss';
11
11
import Inserter from 'components/inserter' ;
12
12
import VisualEditorBlock from './block' ;
13
13
14
- function VisualEditor ( { blocks, blockOrder } ) {
14
+ function VisualEditor ( { blocks } ) {
15
15
return (
16
16
< div className = "editor-visual-editor" >
17
17
< div className = "editor-visual-editor__blocks" >
18
18
{ map ( blocks , ( block , uid ) => (
19
- < VisualEditorBlock
20
- key = { uid }
21
- uid = { uid }
22
- order = { blockOrder . indexOf ( uid ) } />
19
+ < VisualEditorBlock key = { uid } uid = { uid } />
23
20
) ) }
24
21
</ div >
25
22
< Inserter />
@@ -28,6 +25,5 @@ function VisualEditor( { blocks, blockOrder } ) {
28
25
}
29
26
30
27
export default connect ( ( state ) => ( {
31
- blocks : state . blocks . byUid ,
32
- blockOrder : state . blocks . order
28
+ blocks : state . blocks . byUid
33
29
} ) ) ( VisualEditor ) ;
You can’t perform that action at this time.
0 commit comments