Reputation: 13
Currently seeing the following behaviour in our Sitecore XM Cloud Pages. We are using custom components. This is our code snippet where I think the bug is:
{sitecoreContext?.pageState === 'edit' ? (
<Link field={props.VideoLink}>
{props.VideoLink?.value.href ? (
<ReactPlayer {...playerProps} className="video-player__player" />
) : null}
{props?.children}
</Link>
) : do something else if not in edit mode on Pages
After running several debugging lines I can conclude the following:
I think it might be a Sitecore Pages issue after all but really at a loss on how to solve it. If anyone has any ideas I'd love to hear them!
Listed the actions I tried. I think I found the main problem but don't know how to solve it.
Upvotes: 0
Views: 30