Skip to content

Commit 1de5ff8

Browse files
committed
Address a Travis error: remove declaration of select
Also, this enables changing the paramter ownSelect to select.
1 parent 78692f6 commit 1de5ff8

File tree

1 file changed

+4
-5
lines changed
  • assets/src/stories-editor/blocks/amp-story-page

1 file changed

+4
-5
lines changed

assets/src/stories-editor/blocks/amp-story-page/edit.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
withSelect,
3333
withDispatch,
3434
dispatch,
35-
select,
3635
} from '@wordpress/data';
3736
import { compose } from '@wordpress/compose';
3837

@@ -443,13 +442,13 @@ PageEdit.propTypes = {
443442
};
444443

445444
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' );
449448

450449
const isFirstPage = getBlockOrder().indexOf( clientId ) === 0;
451450
const isCallToActionAllowed = ! isFirstPage && ! getCallToActionBlock( clientId );
452-
const { getAnimatedBlocks } = ownSelect( 'amp/story' );
451+
const { getAnimatedBlocks } = select( 'amp/story' );
453452

454453
const { mediaId } = attributes;
455454

0 commit comments

Comments
 (0)