From 90b19336bb91bab73fcd90a843d63c4d71458c7b Mon Sep 17 00:00:00 2001 From: bkdkmd Date: Mon, 6 Jun 2022 10:07:18 +0200 Subject: [PATCH] Fixed app selector on payload decoder edition --- .../payload-decoder-edit.component.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app/payload-decoder/payload-decoder-edit/payload-decoder-edit.component.ts b/src/app/payload-decoder/payload-decoder-edit/payload-decoder-edit.component.ts index e4bb105b3..9458e3ca0 100644 --- a/src/app/payload-decoder/payload-decoder-edit/payload-decoder-edit.component.ts +++ b/src/app/payload-decoder/payload-decoder-edit/payload-decoder-edit.component.ts @@ -60,10 +60,7 @@ export class PayloadDecoderEditComponent implements OnInit { public application: Application; public iotDevices: IotDevice[]; public iotDevice: IotDevice; - public pageLimit = environment.tablePageSize; - public pageTotal: number; - public pageOffset = 0; - public deviceSubscription: Subscription; + public deviceSubscription: Subscription; constructor( private translate: TranslateService, @@ -182,8 +179,8 @@ export class PayloadDecoderEditComponent implements OnInit { getApplications(orgId?: number): void { this.applicationsSubscription = this.applicationService .getApplications( - this.pageLimit, - this.pageOffset * this.pageLimit, + null, + null, null, null, orgId ? orgId : this.getCurrentOrganisationId()