Skip to content

Commit

Permalink
remove downloadJSON listener on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Sep 7, 2023
1 parent d9ff0a4 commit 7e399e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/Result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export default {
}
this.fetchData();
},
destroyed () {
this.$root.$off('downloadJSON');
},
watch: {
'$route': function(to, from) {
if (from.path != to.path) {
Expand Down Expand Up @@ -126,7 +129,6 @@ export default {
const result = await getQueryPromises(queryResponse.data.lookup);
allData.push(...result);
if (queryResponse.data.hasNext) {
console.log('would go next now')
page++;
await getFn();
}
Expand Down

0 comments on commit 7e399e9

Please sign in to comment.