Skip to content

Commit

Permalink
prefix ccosec with ccopre in the search result table
Browse files Browse the repository at this point in the history
  • Loading branch information
landryb committed Aug 16, 2022
1 parent bb66863 commit d4fce73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/extension/components/table/PlotsSelectionTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const columns = [{
name: "cadastrapp.parcelle.result.commune",
resizable: true
}, {
key: "ccosec",
key: "sectionLabel",
width: 80,
sortable: true,
name: "cadastrapp.parcelle.result.ccosec",
Expand Down Expand Up @@ -45,8 +45,8 @@ function PlotsSelectionTable({
if (!data) {
return null;
}
// create mixed column for address
const processedRows = data.map(v => ({ ...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);
Expand Down

0 comments on commit d4fce73

Please sign in to comment.