joyent-portal/packages/my-joy-instances/src/state/parse-error.js

5 lines
156 B
JavaScript
Raw Normal View History

2018-02-05 17:12:47 +02:00
export default ({ graphQLErrors = [], message = '' }) =>
graphQLErrors.length
? graphQLErrors.map(({ message }) => message).join('\n')
: message;