mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
patches error on single() call
This commit is contained in:
1 parent
3df7c28702
commit
f9a1ebb048
2 files changed
+3
-3
No files matched your search
@@ -294,7 +294,7 @@ export default function Account({ session }) {
|
||||
.eq('id', user.id)
|
||||
.single()
|
||||
|
||||
if (error) {
|
||||
if (error && status != 416) {
|
||||
throw error
|
||||
}
|
||||
|
||||
|
||||
@@ -286,13 +286,13 @@ export default function Account({ session }) {
|
||||
setLoading(true)
|
||||
const user = supabase.auth.user()
|
||||
|
||||
let { data, error } = await supabase
|
||||
let { data, error, status } = await supabase
|
||||
.from('profiles')
|
||||
.select(`username, website, avatar_url`)
|
||||
.eq('id', user.id)
|
||||
.single()
|
||||
|
||||
if (error) {
|
||||
if (error && status != 416) {
|
||||
throw error
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user