Skip to content

Commit

Permalink
fix: improve refresh private function
Browse files Browse the repository at this point in the history
  • Loading branch information
raulghm committed May 22, 2019
1 parent 37878fb commit 78c078f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ export default {
pullToRefresh({
container: document.querySelector('.Home'),
animates: ptrAnimatesIos,
refresh () {
return new Promise(async (resolve) => {
await context.$apollo.queries.findByProximity.refetch()
resolve()
})
async refresh () {
await context.$apollo.queries.findByProximity.refetch()
}
})
}
Expand Down

0 comments on commit 78c078f

Please sign in to comment.