UNPKG

@talend/react-forms

Version:

React forms library based on json schema form.

14 lines 350 B
import { omit } from "lodash"; export function getError(errors, schema) { return errors[schema.key]; } export function removeError(errors, schema) { return omit(errors, schema.key.toString()); } export function addError(errors, schema, valueError) { return { ...errors, [schema.key]: valueError }; } //# sourceMappingURL=errors.js.map