|  |  | 
 |  |  |         notify('common.response.success'); | 
 |  |  |     }; | 
 |  |  |  | 
 |  |  |     const handleError = async (data) => { | 
 |  |  |         notify('common.response.fail'); | 
 |  |  |     const handleError = async (error) => { | 
 |  |  |         notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); | 
 |  |  |     }; | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  | 
 |  |  |                                         <AutocompleteInput | 
 |  |  |                                             label="table.field.codeGap.code0" | 
 |  |  |                                             optionText="data" | 
 |  |  |                                             filterToQuery={(val) => ({ data: val })} | 
 |  |  |                                             validate={required()} | 
 |  |  |                                         /> | 
 |  |  |                                     </ReferenceInput> | 
 |  |  | 
 |  |  |                                         <AutocompleteInput | 
 |  |  |                                             label="table.field.codeGap.code1" | 
 |  |  |                                             optionText="data" | 
 |  |  |                                             filterToQuery={(val) => ({ data: val })} | 
 |  |  |                                             validate={required()} | 
 |  |  |                                         /> | 
 |  |  |                                     </ReferenceInput> | 
 |  |  | 
 |  |  |                                     <NumberInput | 
 |  |  |                                         label="table.field.codeGap.distance" | 
 |  |  |                                         source="distance" | 
 |  |  |                                         validate={required()} | 
 |  |  |                                     /> | 
 |  |  |                                 </Grid> | 
 |  |  |  |