Skip to content

Commit

Permalink
Merge pull request #4446 from thematters/fix/history-private-query
Browse files Browse the repository at this point in the history
fix(article): fix ARTICLE_HISTORY_PRIVATE query
  • Loading branch information
robertu7 authored May 24, 2024
2 parents 9a4ef33 + 67a0af1 commit b19ce7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/ArticleDetail/History/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ const ArticleDetailHistory = ({ latestVersion }: { latestVersion: string }) => {
await client.query({
query: ARTICLE_HISTORY_PRIVATE,
fetchPolicy: 'network-only',
variables: { id: article?.id, version: currVersion },
variables: { shortHash: article.shortHash, version: currVersion },
})
}

useEffect(() => {
;(async () => {
await loadPrivate()
})()
}, [article?.id, currVersion])
}, [article?.shortHash, currVersion])

/**
* Render:Loading
Expand Down

0 comments on commit b19ce7d

Please sign in to comment.