Skip to content

Commit 5fdea10

Browse files
author
Guillaume Chau
committed
Version bump
1 parent be7ad37 commit 5fdea10

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

dist/vue-apollo.esm.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,17 +2798,21 @@ var SmartQuery = function (_SmartApollo) {
27982798
this.loadingDone();
27992799
}
28002800

2801+
var hasResultCallback = typeof this.options.result === 'function';
2802+
28012803
if (typeof data === 'undefined') {
28022804
// No result
28032805
} else if (typeof this.options.update === 'function') {
28042806
this.vm[this.key] = this.options.update.call(this.vm, data);
28052807
} else if (data[this.key] === undefined) {
28062808
console.error('Missing ' + this.key + ' attribute on result', data);
2807-
} else {
2809+
} else if (!this.options.manual) {
28082810
this.vm[this.key] = data[this.key];
2811+
} else if (!hasResultCallback) {
2812+
console.error(this.key + ' query must have a \'result\' hook in manual mode');
28092813
}
28102814

2811-
if (typeof this.options.result === 'function') {
2815+
if (hasResultCallback) {
28122816
this.options.result.call(this.vm, result);
28132817
}
28142818
}

0 commit comments

Comments
 (0)