joyent-portal/packages/my-joy-instances/src/state/parse-error.js
2018-02-28 11:18:40 +00:00

5 lines
156 B
JavaScript

export default ({ graphQLErrors = [], message = '' }) =>
graphQLErrors.length
? graphQLErrors.map(({ message }) => message).join('\n')
: message;