diff --git a/js/extension/components/lists/ReferenceRow.jsx b/js/extension/components/lists/ReferenceRow.jsx index 628beab..c278910 100644 --- a/js/extension/components/lists/ReferenceRow.jsx +++ b/js/extension/components/lists/ReferenceRow.jsx @@ -49,7 +49,7 @@ export default function ReferenceRow({ defaultOpen disabled={isEmpty(sections)} style={fieldStyle} - textField="ccosec" + textField="label" placeholder={'cadastrapp.parcelle.result.ccosec'} value={section} onChange={() => { }} @@ -57,10 +57,11 @@ export default function ReferenceRow({ onSetValue('section', newSection); }} filter="contains" - data={sections.map(({ ccosec, ...rest}) => ({ + data={sections.map(({ ccosec, ccopre, ...rest}) => ({ ccosec, + ccopre, ...rest, - label: "" + ccosec + label: ccopre + ccosec }))} /> ({ ...v, cadastralAddr: v.dnvoiri + " " + v.cconvo + " " + v.dvoilib })); + // create mixed column for address and section + const processedRows = data.map(v => ({ ...v, sectionLabel: v.ccopre + v.ccosec, cadastralAddr: v.dnvoiri + " " + v.cconvo + " " + v.dvoilib })); const rows = (({sortColumn, sortDirection} = {}) => { if (sortDirection === "ASC") { return sortBy(processedRows, sortColumn);