Modal not appearing on page, but appearing in 'preview' of dev tools

Hi all,

Not sure if this might be a bug.

I’m trying to show a modal based on data from a SC in the layout page. The condition is essentially != “active” - so it should display when the specific field in the DB returned by the layout SC does not equal active.

Screenshot and code used:
Screen Shot 2020-11-02 at 10.06.57 am

(get_user_info.data.getCredits.subscription_status != ‘active’)

Modal appearing in preview tab:

I’ve made sure that the field is in fact loading by simplying binding the data to the page, but when I try to set the modal to display on this - nothing happens on the page itself, however if I go to dev tools - it appears as HTML within the ‘preview’ tab - which is a little odd.

I’ve tested the ‘auto-show’ to make sure that the modal can indeed show in the page, and that works fine. I’ve also tried changing the conditions around to make sure it’s not just the condition i’ve set failing, still no luck.

Any ideas here? Or likely a bug that needs to be reported?

Community Page
Last updated: