diff --git a/packages/block-library/src/media-text/deprecated.js b/packages/block-library/src/media-text/deprecated.js index 2d061213dface..93366f827055b 100644 --- a/packages/block-library/src/media-text/deprecated.js +++ b/packages/block-library/src/media-text/deprecated.js @@ -2,7 +2,6 @@ * External dependencies */ import classnames from 'classnames'; -import { isEmpty } from 'lodash'; /** * WordPress dependencies @@ -258,7 +257,7 @@ const v6 = { } = attributes; const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG; - const newRel = isEmpty( rel ) ? undefined : rel; + const newRel = ! rel ? undefined : rel; const imageClasses = classnames( { [ `wp-image-${ mediaId }` ]: mediaId && mediaType === 'image', @@ -387,7 +386,7 @@ const v5 = { } = attributes; const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG; - const newRel = isEmpty( rel ) ? undefined : rel; + const newRel = ! rel ? undefined : rel; const imageClasses = classnames( { [ `wp-image-${ mediaId }` ]: mediaId && mediaType === 'image', @@ -501,7 +500,7 @@ const v4 = { } = attributes; const mediaSizeSlug = attributes.mediaSizeSlug || DEFAULT_MEDIA_SIZE_SLUG; - const newRel = isEmpty( rel ) ? undefined : rel; + const newRel = ! rel ? undefined : rel; const imageClasses = classnames( { [ `wp-image-${ mediaId }` ]: mediaId && mediaType === 'image', @@ -646,7 +645,7 @@ const v3 = { linkTarget, rel, } = attributes; - const newRel = isEmpty( rel ) ? undefined : rel; + const newRel = ! rel ? undefined : rel; let image = (