Skip to content

Commit

Permalink
fix: only set initial URL state if important query values are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 1, 2021
1 parent 3ef3ee8 commit 129c5d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/pages/posts/navigation/url/UrlManagerMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default {
},

async mounted() {
await this.setInitialUrlState()
if (this.urlDomain === undefined || this.urlPage === undefined) {
await this.setInitialUrlState()
}

await this.fetchPosts()
},
Expand Down

0 comments on commit 129c5d1

Please sign in to comment.