We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31bd105 commit 6f5a024Copy full SHA for 6f5a024
src/treeViews/currentBranch.ts
@@ -113,14 +113,10 @@ export class CurrentBranchTreeProvider
113
const resp = result.data;
114
const runs = resp.workflow_runs;
115
// We are removing newlines from workflow names for presentation purposes
116
- const runsWithNamesWithNoNewlines = runs.map(run => {
117
- if (run.name) {
118
- run.name = run.name.replace(/(\r\n|\n|\r)/gm, " ");
119
- }
120
-
121
- return run;
122
- });
+ for (const run of runs) {
+ run.name = run.name?.replace(/(\r\n|\n|\r)/gm, " ");
+ }
123
124
- return this.runNodes(gitHubRepoContext, runsWithNamesWithNoNewlines, true);
+ return this.runNodes(gitHubRepoContext, runs, true);
125
}
126
0 commit comments