Client: create DashCreateTeamWrapper
This commit is contained in:
1 parent
1637abbc88
commit
f7c5e9cc70
8 files changed
+167
-70
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const ErrorResponse = {
|
||||
'unique constraint': 'Sorry, already taken! Please create a unique '
|
||||
}
|
||||
|
||||
export const checkGraphQLError = (error) => {
|
||||
console.log('checkGraphQLError ', ErrorResponse)
|
||||
if (error.search(/unique constraint/)) {
|
||||
const field = error.substring(error.indexOf('=') + 1)
|
||||
console.log('unique constraint', field.replace(/ +/g, ''))
|
||||
}
|
||||
}
|
||||
|
||||
export default checkGraphQLError
|
||||
Reference in new issue
Block a user