From 9f714c85f1602817ad2a41431684901a1c9a870e Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Thu, 11 Feb 2021 12:29:43 +0100 Subject: [PATCH] fix(ApolloQuery): null error in isDataFilled, closes #933 --- packages/vue-apollo/src/components/ApolloQuery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-apollo/src/components/ApolloQuery.js b/packages/vue-apollo/src/components/ApolloQuery.js index f556b7ea..efc156da 100644 --- a/packages/vue-apollo/src/components/ApolloQuery.js +++ b/packages/vue-apollo/src/components/ApolloQuery.js @@ -1,7 +1,7 @@ import gql from 'graphql-tag' function isDataFilled (data) { - return Object.keys(data).length > 0 + return data && Object.keys(data).length > 0 } export default {