5 lines
156 B
JavaScript
5 lines
156 B
JavaScript
|
export default ({ graphQLErrors = [], message = '' }) =>
|
||
|
graphQLErrors.length
|
||
|
? graphQLErrors.map(({ message }) => message).join('\n')
|
||
|
: message;
|