mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
fix: Users are unable to delete some saved queries (#20341)
The comparison was with with the wrong owner id.
This commit is contained in:
1 parent
3fadccc175
commit
0e6dc8ffd9
1 file changed
+1
-1
@@ -104,7 +104,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)
|
||||
? snap.snippets[snippetID]
|
||||
: null
|
||||
|
||||
const isSnippetOwner = profile?.id === snippet?.snippet?.owner?.id
|
||||
const isSnippetOwner = profile?.id === snippet?.snippet.owner_id
|
||||
|
||||
const { mutate: deleteContent, isLoading: isDeleting } = useContentDeleteMutation({
|
||||
onSuccess(data) {
|
||||
|
||||
Reference in new issue
Block a user