Skip to content

Commit

Permalink
fix(ApolloQuery): null error in isDataFilled, closes #933
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 11, 2021
1 parent bf1ad25 commit 9f714c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-apollo/src/components/ApolloQuery.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 9f714c8

Please sign in to comment.