Skip to content

Commit

Permalink
Don't show loading if article is already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed May 13, 2022
1 parent affe465 commit 1898fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/article/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function ArticlePage() {

usePushToDataLayer(!!article, { event: 'dataLoaded' });

if (loading) {
if (loading && !article) {
return (
<AppLayout>
<Head>
Expand Down

0 comments on commit 1898fb0

Please sign in to comment.