All groups are not anymore displayed in group page

AI-generated summary

User erik_a reported that since Discourse 2.9.0.beta11, the group page (/g) only displays two groups, though filtering by name or accessing /g.json reveals all groups. JammyDodger asked if the issue persisted in safe mode or incognito, suggesting it might be theme-related. erik_a confirmed the issue disappeared after disabling themes and traced a JavaScript error to the Land on Group Messages component by nathank, which throws Uncaught TypeError: e is null in theme-field-48-common-html-script-1.js:26. nathank acknowledged the issue and promised to investigate and update the component accordingly. The problem appears isolated to specific themes and not a core Discourse regression.

Hello.
First, thank you to the team for all the great job for Discourse !

Since 2.9.0.beta11, the group page ( mydomain/g ) shows only 2 groups.
If I filter by name, I can find the other groups.
The request /g.json shows all the groups of our instance.

So, is there a parameter who changed between beta10 and beta11 which makes groups not displayed in the group page ?

Hello and welcome @erik_a :slight_smile:

I’m not seeing that behaviour here on Meta, or on my test site. Does it still happen for you in safe mode, or in a private window?

Thank you for the quick answer.
So, after disable themes, it’s ok.
I forgot to check the js console, and there is an error with a theme. After some quick tests, it seems to be the Land on Group Messages component by @nathank .

The js error :

Uncaught TypeError: e is null
    setupComponent theme-field-48-common-html-script-1.js:26

Thanks Erik, I’ve just noticed that too. I’ll see if I can fix it. Updates are here: