MCPcopy
hub / github.com/react-component/form / getErrorStrs

Function getErrorStrs

src/utils.js:99–109  ·  view source on GitHub ↗
(errors)

Source from the content-addressed store, hash-verified

97}
98
99export function getErrorStrs(errors) {
100 if (errors) {
101 return errors.map((e) => {
102 if (e && e.message) {
103 return e.message;
104 }
105 return e;
106 });
107 }
108 return errors;
109}
110
111export function getParams(ns, opt, cb) {
112 let names = ns;

Callers 1

FieldsStoreClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected