File tree 1 file changed +4
-5
lines changed
assets/src/stories-editor/blocks/amp-story-page
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import {
32
32
withSelect ,
33
33
withDispatch ,
34
34
dispatch ,
35
- select ,
36
35
} from '@wordpress/data' ;
37
36
import { compose } from '@wordpress/compose' ;
38
37
@@ -443,13 +442,13 @@ PageEdit.propTypes = {
443
442
} ;
444
443
445
444
export default compose (
446
- withSelect ( ( ownSelect , { clientId, attributes } ) => {
447
- const { getMedia } = ownSelect ( 'core' ) ;
448
- const { getBlockOrder, getBlockRootClientId } = ownSelect ( 'core/block-editor' ) ;
445
+ withSelect ( ( select , { clientId, attributes } ) => {
446
+ const { getMedia } = select ( 'core' ) ;
447
+ const { getBlockOrder, getBlockRootClientId } = select ( 'core/block-editor' ) ;
449
448
450
449
const isFirstPage = getBlockOrder ( ) . indexOf ( clientId ) === 0 ;
451
450
const isCallToActionAllowed = ! isFirstPage && ! getCallToActionBlock ( clientId ) ;
452
- const { getAnimatedBlocks } = ownSelect ( 'amp/story' ) ;
451
+ const { getAnimatedBlocks } = select ( 'amp/story' ) ;
453
452
454
453
const { mediaId } = attributes ;
455
454
You can’t perform that action at this time.
0 commit comments