Skip to content

Commit

Permalink
Don't render empty section
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Feb 4, 2023
1 parent 4f94f09 commit 14e3bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/table/edit.js
Expand Up @@ -398,7 +398,7 @@ function TableEdit( {
},
];

const renderedSections = [ 'head', 'body', 'foot' ].map( ( name ) => (
const renderedSections = sections.map( ( name ) => (
<TSection name={ name } key={ name }>
{ attributes[ name ].map( ( { cells }, rowIndex ) => (
<tr key={ rowIndex }>
Expand Down

0 comments on commit 14e3bea

Please sign in to comment.