Skip to content

Commit

Permalink
Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Apr 23, 2021
1 parent 6717341 commit 6e726cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/store/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function convertMenuItemToBlock( menuItem, innerBlocks = [] ) {
mapMenuItemFieldToBlockAttribute( 'object', menuItem.object ) ),
...( menuItem?.type &&
mapMenuItemFieldToBlockAttribute( 'type', menuItem.type ) ),
...( menuItem.target === NEW_TAB_TARGET_ATTRIBUTE && {
...( menuItem?.target === NEW_TAB_TARGET_ATTRIBUTE && {
opensInNewTab: true,
} ),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/store/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function computeCustomizedAttribute(
'kind',
block.attributes?.kind
) ),
target: block.attributes.opensInNewTab
target: block.attributes.opensInNewTab
? NEW_TAB_TARGET_ATTRIBUTE
: '',
};
Expand Down

0 comments on commit 6e726cb

Please sign in to comment.