Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Users are unable to delete some saved queries (#20341)

Ivan Vasilov0e6dc8ffd9c0
diff --git a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
index 07f44b6557b..068c1728bd3 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
@@ -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) {