We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2edccc + fd64249 commit cd076eeCopy full SHA for cd076ee
assets/js/components/settings/SettingsAdmin.js
@@ -44,8 +44,10 @@ import { useFeature } from '../../hooks/useFeature';
44
export default function SettingsAdmin() {
45
const audienceSegmentationEnabled = useFeature( 'audienceSegmentation' );
46
47
- const configuredAudiences = useSelect( ( select ) =>
48
- select( CORE_USER ).getConfiguredAudiences()
+ const configuredAudiences = useSelect(
+ ( select ) =>
49
+ audienceSegmentationEnabled &&
50
+ select( CORE_USER ).getConfiguredAudiences()
51
);
52
const isAnalyticsConnected = useSelect( ( select ) =>
53
select( CORE_MODULES ).isModuleConnected( 'analytics-4' )
0 commit comments