Skip to content

Commit

Permalink
Merge pull request #9893 from google/9875-console-error
Browse files Browse the repository at this point in the history
Check if First-Party Mode is enabled before using selector.
  • Loading branch information
tofumatt authored Dec 16, 2024
2 parents 504b738 + e503bd4 commit fb1ee0b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ 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 fb1ee0b

Please sign in to comment.