Skip to content

Commit

Permalink
Merge pull request #147 from humanmade/fix/error-editing-block-patterns
Browse files Browse the repository at this point in the history
Fix error when editing Pattern Blocks
  • Loading branch information
maugelves authored Jun 26, 2024
2 parents bca9c79 + 665d5dc commit db82436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AuthorsSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const AuthorsSelect = ( props: AuthorsSelectProps ): ReactElement => {

if ( ! selected.length && isEqual( preloadedAuthorIDs, currentAuthorIDs ) ) {
setSelected( preloadedAuthorOptions.authors );
} else if ( currentAuthorIDs.length && ! selected.length ) {
} else if ( currentAuthorIDs !== undefined && currentAuthorIDs.length && ! selected.length ) {

const path = addQueryArgs(
'/authorship/v1/users/',
Expand Down

0 comments on commit db82436

Please sign in to comment.