Fix export functionality on Analytic pages (#33709)

* Import correct controls

* Add changelog

* Add changelog
This commit is contained in:
Moon 2022-07-03 21:55:39 -07:00 committed by GitHub
parent 6a8f124022
commit 76f9a1fc57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: fix
Type: minor
Fix 'Cannot read properties of undefined' error when clicking Export button on Analytic pages.

View File

@ -2,7 +2,6 @@
* External dependencies * External dependencies
*/ */
import { registerStore } from '@wordpress/data'; import { registerStore } from '@wordpress/data';
import { controls } from '@wordpress/data-controls';
import { SelectFromMap, DispatchFromMap } from '@automattic/data-stores'; import { SelectFromMap, DispatchFromMap } from '@automattic/data-stores';
import { Reducer, AnyAction } from 'redux'; import { Reducer, AnyAction } from 'redux';
/** /**
@ -13,6 +12,7 @@ import * as selectors from './selectors';
import * as actions from './actions'; import * as actions from './actions';
import reducer, { State } from './reducer'; import reducer, { State } from './reducer';
import { WPDataSelectors } from '../types'; import { WPDataSelectors } from '../types';
import controls from '../controls';
export * from './types'; export * from './types';
export type { State }; export type { State };

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Import correct controls for export function