Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary constructor, fix state initialization.
  • Loading branch information
jeffersonrabb committed Nov 21, 2019
commit b0c909297619fe3f14f592c1801e8d639e9fd031
9 changes: 3 additions & 6 deletions extensions/blocks/mailchimp/mailchimp-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import { CheckboxControl } from '@wordpress/components';
import { Fragment, Component } from '@wordpress/element';

class MailchimpGroups extends Component {
constructor() {
super( ...arguments );
this.state = {
groups: [],
};
}
state = {
interest_categories: [],
};
componentDidMount() {
this.retrieveGroups();
}
Expand Down