Skip to content

Commit

Permalink
Task advanced : a last comma that should not be displayed (#5496)
Browse files Browse the repository at this point in the history
Signed-off-by: vlo-rte <valerie.longa@rte-france.com>
  • Loading branch information
vlo-rte committed Dec 1, 2023
1 parent 5d9de43 commit ce14353
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class TaskCardTemplateView {
if (bysetpos.includes("-1")) textForBysetpos += opfab.utils.getTranslation("buildInTemplate.taskCard.last") + ", ";

if (textForBysetpos != "") {
textForBysetpos = textForBysetpos.slice(0, -1); //we delete the last comma
textForBysetpos = textForBysetpos.slice(0, -2); //we delete the last comma
textForBysetpos = opfab.utils.getTranslation("buildInTemplate.taskCard.the") + " " + textForBysetpos + " ";
}
}
Expand Down

0 comments on commit ce14353

Please sign in to comment.