ENCOA-316 ENCOA-317:
Refactor components to remove Layout wrapper and pass it in the App component , implemented a skeleton feedback while loading page and improved API calls related to Dashboard/User Profile
This commit is contained in:
@@ -32,7 +32,7 @@ export const getEntitiesWithRoles = async (ids?: string[]): Promise<EntityWithRo
|
||||
export const getEntities = async (ids?: string[], projection = {}) => {
|
||||
return await db
|
||||
.collection("entities")
|
||||
.find<Entity>(ids ? { id: { $in: ids } } : {}, projection)
|
||||
.find<Entity>(ids ? { id: { $in: ids } } : {}, { projection })
|
||||
.toArray();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user