Skip to content

Commit

Permalink
Merge pull request #9896 from google/fix/9895-console-error
Browse files Browse the repository at this point in the history
Fix FPM console error on Ads module settings view when not enabled
  • Loading branch information
tofumatt authored Dec 16, 2024
2 parents fb1ee0b + 1b22617 commit 03a4475
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/modules/ads/components/settings/SettingsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default function SettingsView() {
);

const isFPMEnabled = useSelect( ( select ) => {
if ( ! fpmEnabled ) {
return false;
}
const { isFirstPartyModeEnabled, isFPMHealthy, isScriptAccessEnabled } =
select( CORE_SITE );

Expand Down

0 comments on commit 03a4475

Please sign in to comment.