From 9786c6baf50925f82a04f2b94260e3cdc5c66ce7 Mon Sep 17 00:00:00 2001 From: Sercan Yemen <117369+srcn@users.noreply.github.com> Date: Thu, 12 May 2022 23:18:10 +0300 Subject: [PATCH] (mock-api/file-manager) Fixed: http params are not working properly because of the new string conversion --- src/app/mock-api/apps/file-manager/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/mock-api/apps/file-manager/api.ts b/src/app/mock-api/apps/file-manager/api.ts index ff4f7e7a..02ca4074 100644 --- a/src/app/mock-api/apps/file-manager/api.ts +++ b/src/app/mock-api/apps/file-manager/api.ts @@ -38,8 +38,8 @@ export class FileManagerMockApi // Clone the items let items = cloneDeep(this._items); - // See if a folder id exist - const folderId = request.params.get('folderId') ?? null; + // See if the folder id exist + const folderId = request.params.get('folderId') === 'null' ? null : request.params.get('folderId'); // Filter the items by folder id. If folder id is null, // that means we want to root items which have folder id