Skip to content

Commit

Permalink
omit the columns attribute while migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 24, 2019
1 parent 8109601 commit f5b581a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/columns/deprecated.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* External dependencies
*/
import { omit } from 'lodash';
import classnames from 'classnames';

/**
Expand Down Expand Up @@ -108,6 +109,11 @@ export default [
default: 2,
},
},
migrate( attributes, innerBlocks ) {
attributes = omit( attributes, [ 'columns' ] );

return [ attributes, innerBlocks ];
},
save( { attributes } ) {
const { verticalAlignment, columns } = attributes;

Expand Down

0 comments on commit f5b581a

Please sign in to comment.