Skip to content

Commit

Permalink
fix: validate that the parameter has not been the same before or is null
Browse files Browse the repository at this point in the history
  • Loading branch information
krlz16 committed Jun 7, 2024
1 parent 8d55930 commit c5d1264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default {
const routeName = this.$route.name
const urlParam = this.$route.params.address
// If the parameters are the same when the router changes, we do not request the address information.
if (this.storedRouteName !== routeName || !urlParam) {
if (this.storedRouteName !== routeName || !urlParam || this.storedRouteName !== urlParam) {
// use Date for a random info
this.storedRouteName = routeName || new Date()
this.storedUrlParam = urlParam
Expand Down

0 comments on commit c5d1264

Please sign in to comment.