From 51d24d36b6e575deac147bb53bcbd46b6b457f84 Mon Sep 17 00:00:00 2001 From: Ronan Date: Thu, 24 Oct 2024 11:59:25 +0200 Subject: [PATCH] =?UTF-8?q?fix(formapi):=20R=C3=A9solution=20du=20probl?= =?UTF-8?q?=C3=A8me=20qui=20faisait=20que=20lorsque=20l'on=20faisait=20plu?= =?UTF-8?q?s=20de=20r=C3=A9sultat=20et=20qu'on=20setup=20un=20format,=20un?= =?UTF-8?q?=20crs=20ou=20sa=20zone,=20le=20form=20n'affichait=20rien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record/src/lib/ign-api-dl/ign-api-dl.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts index 50e39d9ec4..61b5b75fb6 100644 --- a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts +++ b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts @@ -157,15 +157,15 @@ export class IgnApiDlComponent implements OnInit { setZone(value: string) { if (this.bucketPromisesZone.map((choice) => choice.value).includes(value)) { - this.zone$.next(value) this.resetPage() + this.zone$.next(value) } } setCrs(value: string) { if (this.bucketPromisesCrs.map((choice) => choice.value).includes(value)) { - this.crs$.next(value) this.resetPage() + this.crs$.next(value) } } @@ -173,8 +173,8 @@ export class IgnApiDlComponent implements OnInit { if ( this.bucketPromisesFormat.map((choice) => choice.value).includes(value) ) { - this.format$.next(value) this.resetPage() + this.format$.next(value) } } @@ -194,6 +194,7 @@ export class IgnApiDlComponent implements OnInit { } resetPage(): void { this.page$.next('0') + this.size$.next(this.initialLimit) } async getCapabilities() {