Web Developer
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case
Votes
0
Replies
5
Participants
1
Messages
6
Web Developer
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case
Web Developer
The error lies here
Web Developer
Prefs size 3.2KB
The error is a TypeError: Cannot convert object to primitive value happening inside the .map() on line 26 likely because one of the preference keys is an object instead of a plain string, so String(key) is blowing up.
The createPrefRow call is probably receiving a bad key shape from Object.entries($user?.prefs), which would also explain why preferences appear blank.
Are you able to share the full updatePrefs.svelte file, or at least what the raw $user.prefs object looks like in your data?
Rank 1: Thread
using the dart sdk I fetched the users pref and it a json object with no errors
looked into this a bit more since your prefs JSON is clean on the Dart SDK side, the issue is almost certainly in how Budibase is reading/mapping that structure on the frontend. I've dealt with this exact kind of thing before and I'm confident I can get it sorted quickly.
Would you be open to jumping on a quick call? I do this kind of work professionally and would love to help you fix it properly.