diff --git a/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.ts b/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.ts index 9ef05f21..ae83d1b8 100644 --- a/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.ts +++ b/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.ts @@ -161,9 +161,7 @@ export class ListViewComponent implements OnChanges { (response: ReadResourceSequence) => { this.resources = response; this.loading = false; - if (!this.withMultipleSelection) { - this.emitSelectedResources({count: 1, resListIndex: [0], resIds: [this.resources.resources[0].id], selectionType: "single"}); - } + this.emitSelectedResources({count: 1, resListIndex: [0], resIds: [this.resources.resources[0].id], selectionType: "single"}); }, (error: ApiResponseError) => { this._notification.openSnackBar(error); @@ -195,9 +193,7 @@ export class ListViewComponent implements OnChanges { (response: ReadResourceSequence) => { this.resources = response; this.loading = false; - if (!this.withMultipleSelection) { - this.emitSelectedResources({count: 1, resListIndex: [0], resIds: [this.resources.resources[0].id], selectionType: "single"}); - } + this.emitSelectedResources({count: 1, resListIndex: [0], resIds: [this.resources.resources[0].id], selectionType: "single"}); }, (error: ApiResponseError) => { this._notification.openSnackBar(error);