Skip to content

Commit

Permalink
fix issue with variable declaration order
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Apr 11, 2021
1 parent d34dcdb commit 72e9c2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function GalleryEdit( props ) {
} = props;

const {
imageCount,
columns = defaultColumnsNumber( imageCount ),
gutterSize,
imageCount,
imageCrop,
imageUploads,
linkTarget,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { defaultColumnsNumber } from './shared';

export default function save( { attributes } ) {
const {
imageCount,
caption,
columns = defaultColumnsNumber( imageCount ),
gutterSize,
imageCount,
imageCrop,
} = attributes;

Expand Down

0 comments on commit 72e9c2b

Please sign in to comment.