|
|
@ -52,6 +52,7 @@ const SearchForm = ({ initialValue, onSubmit, onReset, confirmText, formName, fo
|
|
|
|
const formValuesMapper = (values) => {
|
|
|
|
const formValuesMapper = (values) => {
|
|
|
|
const destinationObject = {
|
|
|
|
const destinationObject = {
|
|
|
|
'keyword': { key: 'keyword', transform: (value) => value || '' },
|
|
|
|
'keyword': { key: 'keyword', transform: (value) => value || '' },
|
|
|
|
|
|
|
|
'username': { key: 'username', transform: (value) => value || '' },
|
|
|
|
'referenceNo': { key: 'referenceNo', transform: (value) => value || '' },
|
|
|
|
'referenceNo': { key: 'referenceNo', transform: (value) => value || '' },
|
|
|
|
'dates': [
|
|
|
|
'dates': [
|
|
|
|
{ key: 'startdate', transform: (arrVal) => (arrVal ? arrVal[0].format(DATE_FORMAT) : '') },
|
|
|
|
{ key: 'startdate', transform: (arrVal) => (arrVal ? arrVal[0].format(DATE_FORMAT) : '') },
|
|
|
|