[ACS-8091] Testing Angular 15 - The “Create” and “Upload” button from Personal Files are sometimes loaded also on Libraries Page if opened quickly (#3881)

* aaaaa

* [ACS-8091] - Testing Angular 15 - The “Create” and “Upload” button from Personal Files are sometimes loaded also on Libraries Page if opened quickly
This commit is contained in:
jacekpluta
2024-06-10 12:56:54 +02:00
committed by GitHub
parent 147fca0036
commit 9a9aa50eae

View File

@@ -91,13 +91,16 @@ 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.subscribe(({ folderId }: Params) => {
this.route.params.pipe(takeUntil(this.onDestroy$)).subscribe(({ folderId }: Params) => {
const nodeId = folderId || data.defaultNodeId;
this.contentApi.getNode(nodeId).subscribe(
this.contentApi
.getNode(nodeId)
.pipe(takeUntil(this.onDestroy$))
.subscribe(
(node) => {
this.isValidPath = true;