Skip to content

Commit

Permalink
Restore file
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Nov 21, 2024
1 parent da132e0 commit d15aec4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import jetpackAnalytics from '@automattic/jetpack-analytics';
import apiFetch from '@wordpress/api-fetch';
import { dispatch, select } from '@wordpress/data';
import { store as editorStore } from '@wordpress/editor';
import { __ } from '@wordpress/i18n';
import { addQueryArgs } from '@wordpress/url';
import { waitFor } from '../../wait-for';
Expand Down Expand Up @@ -197,7 +196,8 @@ const isMediaSourceConnected = async ( source: MediaSource ) =>
* @return {boolean} True if the inserter is opened false otherwise.
*/
const isInserterOpened = (): boolean => {
const selectIsInserterOpened = select( editorStore )?.isInserterOpened;
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
const selectIsInserterOpened = ( select( 'core/editor' ) as any )?.isInserterOpened;

const editorIsInserterOpened = selectIsInserterOpened?.();

Expand Down

0 comments on commit d15aec4

Please sign in to comment.