diff --git a/components/lib/menubar/MenubarSub.js b/components/lib/menubar/MenubarSub.js index 2be4bef0b9..2830a37905 100644 --- a/components/lib/menubar/MenubarSub.js +++ b/components/lib/menubar/MenubarSub.js @@ -63,6 +63,10 @@ export const MenubarSub = React.memo( }; const getItemId = (processedItem) => { + if (processedItem.item && processedItem.item.id) { + return processedItem.item.id; + } + return `${props.id}_${processedItem.key}`; };