You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapMenuItemsToBlocks function assigns the __internalEntityRecord attribute to all the blocks representing classic menu items. This way we can match blocks with menu items and update the correct ones.
Unfortunately, it doesn't assign __internalEntityRecord to nested blocks. The save function "thinks" it sees new menu items and that it doesn't see the old ones. This results in deleting and re-creating the same menu items on each save:
As noted in 34541:
The
mapMenuItemsToBlocks
function assigns the__internalEntityRecord
attribute to all the blocks representing classic menu items. This way we can match blocks with menu items and update the correct ones.Unfortunately, it doesn't assign
__internalEntityRecord
to nested blocks. The save function "thinks" it sees new menu items and that it doesn't see the old ones. This results in deleting and re-creating the same menu items on each save:gutenberg/packages/edit-navigation/src/store/transform.js
Lines 174 to 184 in bf53422
cc @talldan
The text was updated successfully, but these errors were encountered: