Skip to content

Commit

Permalink
Update class conponents: call the action
Browse files Browse the repository at this point in the history
  • Loading branch information
okmttdhr committed Feb 6, 2025
1 parent 5ec9bba commit 008df3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/my-sites/site-settings/form-general.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import wrapSettingsForm from './wrap-settings-form';
export class SiteSettingsFormGeneral extends Component {
componentDidMount() {
setTimeout( () => scrollToAnchor( { offset: 15 } ) );
this.props.loadRemoveDuplicateViewsExperimentAssignment();
}

getIncompleteLocaleNoticeMessage = ( language ) => {
Expand Down
4 changes: 4 additions & 0 deletions client/my-sites/site-settings/sitemaps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class Sitemaps extends Component {
fields: PropTypes.object,
};

componentDidMount() {
this.props.loadRemoveDuplicateViewsExperimentAssignment();
}

isSitePublic() {
const { fields } = this.props;
return parseInt( fields.blog_public ) === 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class DeleteSite extends Component {
}

componentDidMount() {
loadRemoveDuplicateViewsExperimentAssignment();
this.props.loadRemoveDuplicateViewsExperimentAssignment();
}

_checkSiteLoaded = ( event ) => {
Expand Down
4 changes: 4 additions & 0 deletions client/sites/settings/administration/tools/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class SiteTools extends Component {
}
}

componentDidMount() {
this.props.loadRemoveDuplicateViewsExperimentAssignment();
}

render() {
const {
shouldShowSiteCopyItem,
Expand Down

0 comments on commit 008df3f

Please sign in to comment.