Skip to content

Commit

Permalink
Adjust node.proxy usage - fixes issue johnsonandjohnson#7
Browse files Browse the repository at this point in the history
  • Loading branch information
konst8 committed Oct 26, 2021
1 parent e84f0b3 commit 93adf71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bodiless-components/src/Link/asBodilessLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ const asDisabledPageLink: Token = Component => props => {
const disabledPages = useGetDisabledPages(node);
if (disabledPages?.[href]?.contentLinksDisabled === true) {
const proxyNode = node.proxy({
getData: () => ({
getData: data => ({
...data,
href: '',
}),
});
Expand Down

0 comments on commit 93adf71

Please sign in to comment.