export function getError()

in helper/src/components/common.js [17:20]


export function getError(array, field) {
    const idx = array.findIndex(e => e.field === field)
    return idx >= 0 ? array[idx].message : ''
}