Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2ae8d5a0 authored by Nelly BARRET's avatar Nelly BARRET
Browse files

fixed pathways table

parent 53fa0add
No related branches found
No related tags found
No related merge requests found
......@@ -53,21 +53,22 @@ export default function PathWaysRowResult({ row }) {
console.log(row);
console.log(row.label);
//NB Jan 18, 2024: temporary hack to remove "extract:" labels from paths
var i = 0;
var tmpRowLabels = [];
if('label' in row) {
for (var l of row.label) {
console.log(i + " -> '" + l + "'");
if ((i === 1 && l === "") || (i === (row.label.length - 2) && l === "")) {
console.log("will NOT add " + l);
} else {
console.log("will add " + l);
tmpRowLabels.push(l);
}
i = i + 1;
}
}
row.label = tmpRowLabels;
// didn't work finally.
// var i = 0;
// var tmpRowLabels = [];
// if('label' in row) {
// for (var l of row.label) {
// console.log(i + " -> '" + l + "'");
// if ((i === 1 && l === "") || (i === (row.label.length - 2) && l === "")) {
// console.log("will NOT add " + l);
// } else {
// console.log("will add " + l);
// tmpRowLabels.push(l);
// }
// i = i + 1;
// }
// }
// row.label = tmpRowLabels;
console.log(row.label);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment