From a591571aeea6477450d9beae5579961e7d382760 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 24 Jan 2022 12:15:49 +0000 Subject: [PATCH] Fix error creating from classic in placeholder --- .../src/navigation/edit/placeholder/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/navigation/edit/placeholder/index.js b/packages/block-library/src/navigation/edit/placeholder/index.js index 7fa99e53cdfc49..c1f2c694bfc480 100644 --- a/packages/block-library/src/navigation/edit/placeholder/index.js +++ b/packages/block-library/src/navigation/edit/placeholder/index.js @@ -112,8 +112,14 @@ export default function NavigationPlaceholder( { onFinish } classicMenus={ menus } - onSelectClassicMenu={ - convertClassicMenu + onSelectClassicMenu={ ( { + id, + name, + } ) => + convertClassicMenu( + id, + name + ) } showClassicMenus={ canUserCreateNavigation