You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supabase generally returns an array of data, even if you're using a unique identifier such as an id to look for an object. I'm an idiot and instead of doing things the right way I just took out the first element of the array.
Supabase generally returns an array of data, even if you're using a unique identifier such as an id to look for an object. I'm an idiot and instead of doing things the right way I just took out the first element of the array.
https://supabase.com/docs/reference/javascript/single
but you could use .limit(1) and .single to make the code cleaner
This would save lines of code and make it slightly more optimized! just a peeve right now.
The text was updated successfully, but these errors were encountered: