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) {