diff --git a/projects/app/src/pages/api/core/app/list.ts b/projects/app/src/pages/api/core/app/list.ts index 7f3f5ce13..eaee894bf 100644 --- a/projects/app/src/pages/api/core/app/list.ts +++ b/projects/app/src/pages/api/core/app/list.ts @@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps): Promise) { ? { $or: [idList, parseParentIdInMongo(parentId)] } - : idList; + : { $or: [idList, { parentId: null }] }; const searchMatch = searchKey ? {