Skip to content

Commit

Permalink
chore(ui): Execution modal - Add dataset as first in the list (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
boddissattva authored Dec 11, 2024
1 parent 5d39b3b commit 0a4c9d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export class ScenarioExecuteModalComponent implements OnInit {
const createDatasetLabel = this.translateService.instant('dataset.actions.createDataset');
this.createDataset = new Dataset(createDatasetLabel, "", [], new Date(), [], [])
this.datasetService.findAll().subscribe((res: Array<Dataset>) => {
this.datasets = [...res, this.createDataset];
this.filteredDatasets = [...res, this.createDataset];
this.datasets = [this.createDataset, ...res];
this.filteredDatasets = [this.createDataset, ...res];
});

this.datasetForm = this.formBuilder.group({
Expand Down

0 comments on commit 0a4c9d1

Please sign in to comment.