diff --git a/src/components/ApolloMutation.js b/src/components/ApolloMutation.js index eae5644..00cce7c 100644 --- a/src/components/ApolloMutation.js +++ b/src/components/ApolloMutation.js @@ -81,6 +81,6 @@ export default { } else { result = [result].concat(this.$slots.default) } - return this.tag ? h(this.tag, result) : result + return this.tag ? h(this.tag, result) : result[0] }, } diff --git a/src/components/ApolloQuery.js b/src/components/ApolloQuery.js index b9bcb9f..b3e72d0 100644 --- a/src/components/ApolloQuery.js +++ b/src/components/ApolloQuery.js @@ -192,6 +192,6 @@ export default { } else { result = [result].concat(this.$slots.default) } - return this.tag ? h(this.tag, result) : result + return this.tag ? h(this.tag, result) : result[0] }, }