Skip to content

Commit

Permalink
fix: destruction of $apollo in vue-apollo-option (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotillion committed Nov 1, 2021
1 parent 9b3af01 commit e2dad14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vue-apollo-option/src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ function defineReactiveSetter ($apollo, key, value, deep) {
}

function destroy () {
if (this.$_apollo) {
this.$_apollo.destroy()
this.$_apollo = null
if (this.$apollo) {
this.$apollo.destroy()
this.$apollo = null
}
}

Expand Down

0 comments on commit e2dad14

Please sign in to comment.