fix: graphql error notifications

This commit is contained in:
Nicolas Giard committed 2019-01-12 22:33:30 -05:00
1 parent 7e62c01ed1
commit 959f2ebde1
9 files changed
+42 -58

No files matched your search

+1 -5
View File
@@ -214,11 +214,7 @@ export default {
throw new Error(_.get(resp, 'data.navigation.updateTree.responseResult.message', 'An unexpected error occured.'))
}
} catch (err) {
this.$store.commit('showNotification', {
message: err.message,
style: 'red',
icon: 'warning'
})
this.$store.commit('pushGraphError', err)
}
this.$store.commit(`loadingStop`, 'admin-navigation-save')
},