Merge pull request #12610 from vvlladd28/bug/lwm2m/list-sort-property

Fixed incorrect search by LWM2M models
This commit is contained in:
Andrew Shvayka 2025-02-11 15:02:57 +02:00 committed by GitHub
commit 40e576ee94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,7 +190,7 @@ export class Lwm2mObjectListComponent implements ControlValueAccessor, OnInit, V
private fetchListObjects = (searchText: string): Observable<Array<ObjectLwM2M>> => { private fetchListObjects = (searchText: string): Observable<Array<ObjectLwM2M>> => {
this.searchText = searchText; this.searchText = searchText;
const pageLink = new PageLink(PAGE_SIZE_LIMIT, 0, this.searchText, { const pageLink = new PageLink(PAGE_SIZE_LIMIT, 0, this.searchText, {
property: 'id', property: 'resourceKey',
direction: Direction.ASC direction: Direction.ASC
}); });
return this.deviceProfileService.getLwm2mObjectsPage(pageLink); return this.deviceProfileService.getLwm2mObjectsPage(pageLink);