Select default sorting option during the table generation
Run the table and observe the table data request payload
What: Actual result vs expected resultExpected Result: the default sort property is specified at the table request
Actual Result:sortProperty key if specified as a property to sort data
Where: (e.g. component, version, url, your system info)
The issue is at the src/ng-generate/components/shared/methods/remote-handling/requestData.ts.template file.
the following line treats sortProperty as a key for SortOptions, but it should be evaluated to the property value
queryOption.setSort(new Sort(<SortOptions>{sortProperty: sortDirection}));
The correct line
queryOption.setSort(new Sort(<SortOptions>{[sortProperty]: sortDirection}));Input (files/screenshots)
How: List of performed steps
What: Actual result vs expected result Expected Result: the default sort property is specified at the table request Actual Result:
sortProperty
key if specified as a property to sort dataWhere: (e.g. component, version, url, your system info) The issue is at the
src/ng-generate/components/shared/methods/remote-handling/requestData.ts.template
file. the following line treatssortProperty
as a key for SortOptions, but it should be evaluated to the property valuequeryOption.setSort(new Sort(<SortOptions>{sortProperty: sortDirection}));
The correct linequeryOption.setSort(new Sort(<SortOptions>{[sortProperty]: sortDirection}));
Input (files/screenshots)Output (files/screenshots)
Additional context (e.g. references)