Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Fixes a regression introduced when loading saved Jetpack AI block
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ export default function Edit( { attributes, setAttributes } ) {
</Button>
</Placeholder>
) }
{ attributes.content && ! loadingCompletion && (
{ attributes.content && (
<div>
<div className="content">
<RawHTML>{ attributes.content.trim().replaceAll( '\n', '<br/>' ) }</RawHTML>
</div>
</div>
) }
{ loadingCompletion && (
{ loadingCompletion && ! attributes.content && (
<div style={ { padding: '10px', textAlign: 'center' } }>
<Spinner
style={ {
Expand Down