Client: Teams page basic
This commit is contained in:
1 parent
758e5bdb83
commit
ba5a321127
15 files changed
+286
-95
No files matched your search
@@ -2,7 +2,7 @@ const ErrorResponse = {
|
||||
'unique constraint': 'Sorry, already taken! Please create a unique '
|
||||
}
|
||||
|
||||
export const checkGraphQLError = (error) => {
|
||||
export const checkGraphQLError = error => {
|
||||
console.log('checkGraphQLError ', ErrorResponse)
|
||||
if (error.search(/unique constraint/)) {
|
||||
const field = error.substring(error.indexOf('=') + 1)
|
||||
|
||||
Reference in new issue
Block a user