diff --git a/projects/packages/search/changelog/fix-disable-search-toggle-on-wpcom b/projects/packages/search/changelog/fix-disable-search-toggle-on-wpcom new file mode 100644 index 0000000000000..d95a7ef42d8cf --- /dev/null +++ b/projects/packages/search/changelog/fix-disable-search-toggle-on-wpcom @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + + diff --git a/projects/packages/search/src/dashboard/components/module-control/index.jsx b/projects/packages/search/src/dashboard/components/module-control/index.jsx index 8b031f0d00ade..b61c79b91586b 100644 --- a/projects/packages/search/src/dashboard/components/module-control/index.jsx +++ b/projects/packages/search/src/dashboard/components/module-control/index.jsx @@ -279,25 +279,28 @@ const SearchToggle = ( { const isSearchToggleChecked = isModuleEnabled && supportsSearch && ! isDisabledFromOverLimit; const isSearchToggleDisabled = isSavingEitherOption || ! supportsSearch || isDisabledFromOverLimit; + const isWpcom = useSelect( select => select( STORE_ID ).isWpcom(), [] ); return (