Skip to content

Commit

Permalink
Don't save empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored and t-hamano committed Jan 8, 2025
1 parent c7b24da commit 38c2acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/details/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function save( { attributes } ) {
const blockProps = useBlockProps.save();

return (
<details { ...blockProps } name={ name } open={ showContent }>
<details { ...blockProps } name={ name || null } open={ showContent }>
<summary>
<RichText.Content value={ summary } />
</summary>
Expand Down

0 comments on commit 38c2acd

Please sign in to comment.