diff --git a/assets/js/modules/analytics-4/components/settings/SettingsView.js b/assets/js/modules/analytics-4/components/settings/SettingsView.js index 952c9600fe7..465b886250c 100644 --- a/assets/js/modules/analytics-4/components/settings/SettingsView.js +++ b/assets/js/modules/analytics-4/components/settings/SettingsView.js @@ -96,6 +96,10 @@ export default function SettingsView() { ); const isFPMEnabled = useSelect( ( select ) => { + if ( ! fpmEnabled ) { + return false; + } + const { isFirstPartyModeEnabled, isFPMHealthy, isScriptAccessEnabled } = select( CORE_SITE );