User_status app problem

there is no set status button in web ui when upgrade from nextcloud 21 to nextcloud 23.

the error in web console is Uncaught TypeError: q is null in main-user-status-menu.js:46

the app user status is enabled and the update goes well

but I have this unexpected error

also when click avatar it shows user statuses instead of set status in dropdown menu when click on it it redirects to dashboard.

Steps to reproduce

1.trying to disable and enable user status app again doesn’t fix the proplem

This only happen when using custom theme but when removing custom theme it shows again I don’t know why my theme doesn’t contain any thing related to javascript

this error in web consoleUncaught TypeError: Cannot read properties of null (reading 'dataset')

Issue discussion continued on: