#[Bug] Appwrite Auth User Prefs

5 messages · Page 1 of 1 (latest)

lucid dome
#

User prefs are decoded as blank although there are plenty of data and add preference button not working in this case

#

The error lies here

#

Prefs size 3.2KB

fringe marsh
# lucid dome The error lies here

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?

lucid dome
#

using the dart sdk I fetched the users pref and it a json object with no errors