mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-4265]Refactor attachFileFromLocal method
* Refactor attachFileFromLocal method
This commit is contained in:
@@ -924,7 +924,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
}
|
||||
|
||||
onPreselectNodes() {
|
||||
if (this.data.hasPreselectedRows()) {
|
||||
if (this.data?.hasPreselectedRows()) {
|
||||
const preselectedNodes = [...this.isSingleSelectionMode() ? [this.data.getPreselectedRows()[0]] : this.data.getPreselectedRows()];
|
||||
const selectedNodes = [...this.selection, ...preselectedNodes];
|
||||
|
||||
|
Reference in New Issue
Block a user