Skip to content

Commit

Permalink
Merge pull request #3061 from Automattic/trunk
Browse files Browse the repository at this point in the history
Alpha release Apr 11
  • Loading branch information
laurelfulford authored Apr 11, 2024
2 parents 2f9843a + a0ff261 commit 709766a
Show file tree
Hide file tree
Showing 8 changed files with 5,322 additions and 4,609 deletions.
2 changes: 1 addition & 1 deletion assets/blocks/reader-registration/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function ReaderRegistrationEdit( {
};

const isListSelected = listId => {
return ! listsCheckboxes.hasOwnProperty( listId ) || listsCheckboxes[ listId ];
return listsCheckboxes.hasOwnProperty( listId ) && listsCheckboxes[ listId ];
};
const toggleListCheckbox = listId => () => {
const newListsCheckboxes = { ...listsCheckboxes };
Expand Down
6 changes: 3 additions & 3 deletions assets/components/src/autocomplete-tokenfield/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ class AutocompleteTokenField extends Component {
return;
}

const { validValues } = this.state;
const currentSuggestions = [ ...suggestions ];
const currentValidValues = {};

suggestions.forEach( suggestion => {
currentValidValues[ suggestion.value ] = suggestion.label;
validValues[ suggestion.value ] = suggestion.label;
} );

this.setState( {
suggestions: currentSuggestions,
validValues: currentValidValues,
validValues,
loading: false,
} );
} )
Expand Down
4 changes: 2 additions & 2 deletions assets/wizards/engagement/views/newsletters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ export const SubscriptionLists = ( { lockedLists, onUpdate, initialProvider } )
toggleOnChange={ handleChange( index, 'active' ) }
toggleChecked={ list.active }
className={
list?.id && list.id.startsWith( 'group' )
? 'newspack-newsletters-group-list-item'
list?.id && ( list.id.startsWith( 'group' ) || list.id.startsWith( 'tag' ) )
? 'newspack-newsletters-sub-list-item'
: ''
}
actionText={
Expand Down
2 changes: 1 addition & 1 deletion assets/wizards/engagement/views/newsletters/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.newspack-newsletters-group-list-item {
.newspack-newsletters-sub-list-item {
margin-left: 40px !important;
}
Loading

0 comments on commit 709766a

Please sign in to comment.