Skip to content

Commit

Permalink
Mobile - Gallery block - Fix issue migrating old format and missing f…
Browse files Browse the repository at this point in the history
…ixedHeight context, use of images prop instead of the attributes (#37889)
  • Loading branch information
geriux committed Jan 12, 2022
1 parent 5a0394b commit 72854b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/block-library/src/gallery/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ const v6 = {
type: 'boolean',
default: true,
},
fixedHeight: {
type: 'boolean',
default: true,
},
linkTo: {
type: 'string',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/gallery.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const Gallery = ( props ) => {
const {
mediaPlaceholder,
attributes,
images,
isNarrow,
onBlur,
insertBlocksAfter,
Expand All @@ -49,7 +50,6 @@ export const Gallery = ( props ) => {
}, [ sizes ] );

const {
images,
align,
columns = defaultColumnsNumber( images.length ),
} = attributes;
Expand Down

0 comments on commit 72854b4

Please sign in to comment.