Version bump
This commit is contained in:
Vendored
+6
-2
@@ -2798,17 +2798,21 @@ var SmartQuery = function (_SmartApollo) {
|
||||
this.loadingDone();
|
||||
}
|
||||
|
||||
var hasResultCallback = typeof this.options.result === 'function';
|
||||
|
||||
if (typeof data === 'undefined') {
|
||||
// No result
|
||||
} else if (typeof this.options.update === 'function') {
|
||||
this.vm[this.key] = this.options.update.call(this.vm, data);
|
||||
} else if (data[this.key] === undefined) {
|
||||
console.error('Missing ' + this.key + ' attribute on result', data);
|
||||
} else {
|
||||
} else if (!this.options.manual) {
|
||||
this.vm[this.key] = data[this.key];
|
||||
} else if (!hasResultCallback) {
|
||||
console.error(this.key + ' query must have a \'result\' hook in manual mode');
|
||||
}
|
||||
|
||||
if (typeof this.options.result === 'function') {
|
||||
if (hasResultCallback) {
|
||||
this.options.result.call(this.vm, result);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+6
-2
@@ -2804,17 +2804,21 @@ var SmartQuery = function (_SmartApollo) {
|
||||
this.loadingDone();
|
||||
}
|
||||
|
||||
var hasResultCallback = typeof this.options.result === 'function';
|
||||
|
||||
if (typeof data === 'undefined') {
|
||||
// No result
|
||||
} else if (typeof this.options.update === 'function') {
|
||||
this.vm[this.key] = this.options.update.call(this.vm, data);
|
||||
} else if (data[this.key] === undefined) {
|
||||
console.error('Missing ' + this.key + ' attribute on result', data);
|
||||
} else {
|
||||
} else if (!this.options.manual) {
|
||||
this.vm[this.key] = data[this.key];
|
||||
} else if (!hasResultCallback) {
|
||||
console.error(this.key + ' query must have a \'result\' hook in manual mode');
|
||||
}
|
||||
|
||||
if (typeof this.options.result === 'function') {
|
||||
if (hasResultCallback) {
|
||||
this.options.result.call(this.vm, result);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-apollo",
|
||||
"version": "2.1.0-rc.4",
|
||||
"version": "2.1.0-rc.5",
|
||||
"description": "Vue apollo integration",
|
||||
"main": "dist/vue-apollo.umd.js",
|
||||
"module": "dist/vue-apollo.esm.js",
|
||||
|
||||
Reference in New Issue
Block a user