Skip to content
Open
Changes from 3 commits
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
6 changes: 4 additions & 2 deletions src/components/AuthorsSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ const AuthorsSelect = ( props: AuthorsSelectProps ): ReactElement => {

setSelected( options );
onUpdate( options.map( option => option.value ) );
} ).catch( ( error: WP_REST_API_Error ) => {
onError( error.message );
} ).catch( ( errorResponse: Response ) => {
errorResponse.json().then( response => {
onError( response.message );
} );
} );
};

Expand Down