From f5b581adc2dfcedd48683e94089d78bbe7139182 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 24 Jun 2019 14:49:35 +0100 Subject: [PATCH] omit the columns attribute while migrating --- packages/block-library/src/columns/deprecated.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-library/src/columns/deprecated.js b/packages/block-library/src/columns/deprecated.js index 827971b577e0d5..3e6d23cb73f3c2 100644 --- a/packages/block-library/src/columns/deprecated.js +++ b/packages/block-library/src/columns/deprecated.js @@ -1,6 +1,7 @@ /** * External dependencies */ +import { omit } from 'lodash'; import classnames from 'classnames'; /** @@ -108,6 +109,11 @@ export default [ default: 2, }, }, + migrate( attributes, innerBlocks ) { + attributes = omit( attributes, [ 'columns' ] ); + + return [ attributes, innerBlocks ]; + }, save( { attributes } ) { const { verticalAlignment, columns } = attributes;