Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Connection-Studio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
cedar
Connection-Studio
Commits
2ae8d5a0
Commit
2ae8d5a0
authored
1 year ago
by
Nelly BARRET
Browse files
Options
Downloads
Patches
Plain Diff
fixed pathways table
parent
53fa0add
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/components/pathways/rowResult.js
+16
-15
16 additions, 15 deletions
front/src/components/pathways/rowResult.js
with
16 additions
and
15 deletions
front/src/components/pathways/rowResult.js
+
16
−
15
View file @
2ae8d5a0
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment