From 5dfc0d9bb13c2696793acec9fef099d870cc25e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:28:13 +0200 Subject: [PATCH] Update item fetch to use selected scenario Changed the `fetchItems` method to use `selectedScenario` instead of `scenarioName` in `StatsCompareComponent`. This ensures the correct scenario is referenced when fetching items. --- src/app/item-detail/stats-compare/stats-compare.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/item-detail/stats-compare/stats-compare.component.ts b/src/app/item-detail/stats-compare/stats-compare.component.ts index 91d44d3..dc2904b 100644 --- a/src/app/item-detail/stats-compare/stats-compare.component.ts +++ b/src/app/item-detail/stats-compare/stats-compare.component.ts @@ -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() {