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

The comparison was with with the wrong owner id.
This commit is contained in:
Ivan Vasilov authored and GitHub committed 2024-01-11 12:19:05 +01:00
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) {