Skip to content

Commit

Permalink
Update item fetch to use selected scenario
Browse files Browse the repository at this point in the history
Changed the `fetchItems` method to use `selectedScenario` instead of `scenarioName` in `StatsCompareComponent`. This ensures the correct scenario is referenced when fetching items.
  • Loading branch information
ludeknovy committed Sep 14, 2024
1 parent 6ebdc8f commit 5dfc0d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class StatsCompareComponent implements OnInit {

open(content) {
this.modalService.open(content, { size: "xl" });
this.itemsService.fetchItems(this.params.projectName, this.params.scenarioName, { limit: LIMIT, offset: 0 });
this.itemsService.fetchItems(this.params.projectName, this.selectedScenario, { limit: LIMIT, offset: 0 });
}

loadMore() {
Expand Down

0 comments on commit 5dfc0d9

Please sign in to comment.