Skip to content

Commit

Permalink
Fix refetching on error
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Sep 20, 2024
1 parent e5c60a8 commit c654b3c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,12 @@ export function NewsletterPreviewModal( { isOpen, onClose, postId } ) {
>
<Icon icon={ warning } />
<h3>{ __( 'Oops, something went wrong showing the preview…', 'jetpack' ) }</h3>
<Button onClick={ fetchPreview } variant="primary">
<Button
onClick={ () => {
fetchPreview( selectedAccess );
} }
variant="primary"
>
{ __( 'Try again', 'jetpack' ) }
</Button>
</VStack>
Expand Down

0 comments on commit c654b3c

Please sign in to comment.