From 799ac2b3169c3177a18ef2aea6415b3d2f4b5e7f Mon Sep 17 00:00:00 2001 From: mekhami Date: Fri, 7 Sep 2018 14:02:20 -0500 Subject: [PATCH] fix: error in renderless rendering (#381) --- src/components/ApolloMutation.js | 2 +- src/components/ApolloQuery.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] }, }