fix: destruction of $apollo in vue-apollo-option (#1273)

This commit is contained in:
Erik Gävert
2021-11-01 11:41:15 +01:00
committed by GitHub
parent 9b3af018f5
commit e2dad14ec8
+3 -3
View File
@@ -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
}
}