From 0b6a72513e4577a021a921123591faf844bcf7a5 Mon Sep 17 00:00:00 2001 From: Jacek Pluta Date: Mon, 10 Jun 2024 11:13:52 +0200 Subject: [PATCH] =?UTF-8?q?[ACS-8091]=20-=20Testing=20Angular=2015=20-=20T?= =?UTF-8?q?he=20=E2=80=9CCreate=E2=80=9D=20and=20=E2=80=9CUpload=E2=80=9D?= =?UTF-8?q?=20button=20from=20Personal=20Files=20are=20sometimes=20loaded?= =?UTF-8?q?=20also=20on=20Libraries=20Page=20if=20opened=20quickly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aca-content/src/lib/components/files/files.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/aca-content/src/lib/components/files/files.component.ts b/projects/aca-content/src/lib/components/files/files.component.ts index 92a3588adf..1b4e022ecc 100644 --- a/projects/aca-content/src/lib/components/files/files.component.ts +++ b/projects/aca-content/src/lib/components/files/files.component.ts @@ -91,7 +91,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy { this.title = data.title; - this.route.queryParamMap.subscribe((queryMap: Params) => { + this.route.queryParamMap.pipe(takeUntil(this.onDestroy$)).subscribe((queryMap: Params) => { this.queryParams = queryMap.params; }); this.route.params.pipe(takeUntil(this.onDestroy$)).subscribe(({ folderId }: Params) => {