Hi @Ben just checked the code and it does work for me. Are you logged in with a magic link and did you replace the user-accounts1 with your own block name?
Hi @Maria. Yes, it works now while logged in with a magic link with the corresponding block name plugged into the code on a new user block that is added, however the code does not work for previous versions of the block even if they are updated.
When you posted this code, back in October, it worked. But now it doesn’t work unless it is applied to a brand new block added. Very strange.
BTW, it is difficult to test the User profile block in the studio and preview mode for this scenario. I’m finding that users removed from the Users table, then added again for invites with a magic link, do not always show up in the ‘Preview as’ list of users. Also, if they do populate, the preview doesn’t always refresh to reflect the new user selected.