mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-08 19:45:08 +00:00
(mock-api/file-manager) Fixed: http params are not working properly because of the new string conversion
This commit is contained in:
parent
f5cc14939c
commit
9786c6baf5
|
@ -38,8 +38,8 @@ export class FileManagerMockApi
|
||||||
// Clone the items
|
// Clone the items
|
||||||
let items = cloneDeep(this._items);
|
let items = cloneDeep(this._items);
|
||||||
|
|
||||||
// See if a folder id exist
|
// See if the folder id exist
|
||||||
const folderId = request.params.get('folderId') ?? null;
|
const folderId = request.params.get('folderId') === 'null' ? null : request.params.get('folderId');
|
||||||
|
|
||||||
// Filter the items by folder id. If folder id is null,
|
// Filter the items by folder id. If folder id is null,
|
||||||
// that means we want to root items which have folder id
|
// that means we want to root items which have folder id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user