From 1c4b08ddbae4e44e971f0dfa0e607f427dfb9e42 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Mon, 15 Apr 2019 19:53:34 -0300 Subject: [PATCH] Fix currentUser mutation --- webapp/store/auth.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/webapp/store/auth.js b/webapp/store/auth.js index f5290a925..ca1b453ba 100644 --- a/webapp/store/auth.js +++ b/webapp/store/auth.js @@ -74,19 +74,18 @@ export const actions = { data: { currentUser } } = await client.query({ query: gql(`{ - currentUser { + currentUser { + id + name + slug + email + avatar + role + about + locationName + socialMedia { id - name - slug - email - avatar - role - about - locationName - socialMedia { - id - url - } + url } notifications(read: false, orderBy: createdAt_desc) { id @@ -105,7 +104,8 @@ export const actions = { slug } } - }`) + } + }`) }) if (!currentUser) return dispatch('logout') commit('SET_USER', currentUser)