MCPcopy
hub / github.com/redwoodjs/graphql / _clearErrors

Method _clearErrors

packages/record/src/redwoodrecord/ValidationMixin.js:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8 // Removes all error messages.
9 _clearErrors() {
10 for (const [attribute, _array] of Object.entries(this._errors)) {
11 this._errors[attribute] = []
12 }
13 }
14
15 // Denotes validations that need to run for the given fields. Must be in the
16 // form of { field: options } where `field` is the name of the field and

Callers 1

validateMethod · 0.80

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected