Updated the MasterCorporate with the improved queries

This commit is contained in:
Tiago Ribeiro
2024-09-06 14:57:23 +01:00
parent a6bf53e84c
commit de35e1a8b7
8 changed files with 153 additions and 146 deletions

View File

@@ -80,7 +80,7 @@ export default function UserList({
useEffect(() => {
(async () => {
if (users) {
if (users && users.length > 0) {
const filteredUsers = filters.reduce((d, f) => d.filter(f), users);
const sortedUsers = await asyncSorter<User>(filteredUsers, sortFunction);