From d7f47ca09539ecbe2c1f280eaea57c28f3e530bb Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Wed, 22 Dec 2021 16:01:24 +1300 Subject: [PATCH] Account for undefined style atribute --- packages/block-library/src/navigation/edit/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/block-library/src/navigation/edit/index.js b/packages/block-library/src/navigation/edit/index.js index 417ad02d9fbcbc..f4ab69cf404742 100644 --- a/packages/block-library/src/navigation/edit/index.js +++ b/packages/block-library/src/navigation/edit/index.js @@ -116,9 +116,7 @@ function Navigation( { orientation = 'horizontal', flexWrap = 'wrap', } = {}, - style: { - spacing: { blockGap }, - }, + style: { spacing: { blockGap } = {} } = {}, } = attributes; let areaMenu,