use !result.loading instead of result.loading === false

This commit is contained in:
Manuel Kallenbach
2017-06-26 18:29:55 +02:00
parent 7ebc14d217
commit 709fcd999b
+1 -1
View File
@@ -265,7 +265,7 @@ export class SmartQuery extends SmartApollo {
variables && (this.options.variables = variables)
if (this.observer) {
const result = this.observer.refetch(variables).then((result) => {
if (result.loading === false) {
if (!result.loading) {
this.loadingDone()
}
})