From 56ec1a7ebde83578dc4866e4ac3874eb1abc72f7 Mon Sep 17 00:00:00 2001 From: "Matthew Riley MacPherson (tofumatt)" Date: Thu, 4 Jul 2024 19:03:20 +0100 Subject: [PATCH] Fix `googlesitekit-data` import in Error Notice. --- .../dashboard/AudienceSelectionPanel/ErrorNotice.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSelectionPanel/ErrorNotice.js b/assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSelectionPanel/ErrorNotice.js index b2f472a2ebd..ef655decd9c 100644 --- a/assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSelectionPanel/ErrorNotice.js +++ b/assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSelectionPanel/ErrorNotice.js @@ -25,7 +25,7 @@ import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ -import Data from 'googlesitekit-data'; +import { useSelect, useDispatch } from 'googlesitekit-data'; import { CORE_SITE } from '../../../../../../googlesitekit/datastore/site/constants'; import { MODULES_ANALYTICS_4 } from '../../../../datastore/constants'; import { isInsufficientPermissionsError } from '../../../../../../util/errors'; @@ -34,8 +34,6 @@ import ReportErrorActions from '../../../../../../components/ReportErrorActions' import RequestAccessButton from './RequestAccessButton'; import RetryButton from './RetryButton'; -const { useSelect, useDispatch } = Data; - export default function ErrorNotice() { const syncAvailableAudiencesError = useSelect( ( select ) => select( MODULES_ANALYTICS_4 ).getErrorForAction(