(dispatch: Dispatch<AnyAction>)
| 38 | |
| 39 | export const onChange = |
| 40 | (dispatch: Dispatch<AnyAction>) => |
| 41 | (_: any) => |
| 42 | ({ data, errors }: Pick<JsonFormsCore, 'data' | 'errors'>) => { |
| 43 | Object.keys(data).forEach((key) => (touchedProperties[key] = true)); |
| 44 | |
| 45 | const newErrors = errors.filter((error) => { |
| 46 | return touchedProperties[(error as any).dataPath ?? error.instancePath]; |
| 47 | }); |
| 48 | |
| 49 | if (newErrors.length < errors.length) { |
| 50 | return dispatch(updateErrors(newErrors)); |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | export const schema = { |
| 55 | type: 'object', |
nothing calls this directly
no test coverage detected
searching dependent graphs…