Skip to content

Commit

Permalink
fix: build broken! (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiAdrian authored Dec 5, 2024
1 parent d3cec50 commit 04f9a2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/perlenkette/service/load-perlenkette.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ export class LoadPerlenketteService implements OnDestroy {
private getPerlenketteItem(trainrun: Trainrun): PerlenketteItem[] {
const perlenketteItem: PerlenketteItem[] = [];

let alltrainrunsections =
let allTrainrunSections =
this.trainrunSectionService
.getAllTrainrunSectionsForTrainrun(trainrun.getId());

while (alltrainrunsections.length > 0) {
while (allTrainrunSections.length > 0) {
// traverse over all trainrun parts
const trainrunSection = alltrainrunsections[0];
const trainrunSection = allTrainrunSections[0];

// filter all still visited trainrun sections
allTrainrunSections = allTrainrunSections.filter(ts =>
Expand Down Expand Up @@ -198,7 +198,7 @@ export class LoadPerlenketteService implements OnDestroy {
lastNode = node;

// filter all still visited trainrun sections
alltrainrunsections = alltrainrunsections.filter(ts =>
allTrainrunSections = allTrainrunSections.filter(ts =>
ts.getId() !== currentTrainrunSectionNodePair.trainrunSection.getId()
);
}
Expand Down

0 comments on commit 04f9a2f

Please sign in to comment.