mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-3073] Fix error due to formatSorting() in APW (#5878)
This commit is contained in:
@@ -310,9 +310,13 @@ export class ProcessListCloudComponent extends DataTableSchema implements OnChan
|
||||
}
|
||||
|
||||
formatSorting(sorting: ProcessListCloudSortingModel[]) {
|
||||
this.formattedSorting = sorting.length ? [
|
||||
this.formattedSorting = this.isValidSorting(sorting) ? [
|
||||
ProcessListCloudComponent.ENTRY_PREFIX + sorting[0].orderBy,
|
||||
sorting[0].direction.toLocaleLowerCase()
|
||||
] : null;
|
||||
}
|
||||
|
||||
isValidSorting(sorting: ProcessListCloudSortingModel[]) {
|
||||
return sorting.length && sorting[0].orderBy && sorting[0].direction;
|
||||
}
|
||||
}
|
||||
|
@@ -347,9 +347,13 @@ export class TaskListCloudComponent extends DataTableSchema implements OnChanges
|
||||
}
|
||||
|
||||
formatSorting(sorting: TaskListCloudSortingModel[]) {
|
||||
this.formattedSorting = sorting.length ? [
|
||||
this.formattedSorting = this.isValidSorting(sorting) ? [
|
||||
TaskListCloudComponent.ENTRY_PREFIX + sorting[0].orderBy,
|
||||
sorting[0].direction.toLocaleLowerCase()
|
||||
] : null;
|
||||
}
|
||||
|
||||
isValidSorting(sorting: TaskListCloudSortingModel[]) {
|
||||
return sorting.length && sorting[0].orderBy && sorting[0].direction;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user