pagination and filter fix
This commit is contained in:
1 parent
cdbaad5bd9
commit
93c24d2f5c
6 files changed
+5
-45
No files matched your search
@@ -114,7 +114,7 @@ const UptimeMonitors = () => {
|
||||
]);
|
||||
|
||||
const activeFilter = [...filterLookup].find(([key]) => key !== undefined);
|
||||
const field = activeFilter?.[1] || sort?.field;
|
||||
const field = activeFilter?.[1] || (search ? "name" : sort?.field);
|
||||
const filter = activeFilter?.[0] || search;
|
||||
|
||||
const effectiveTypes = selectedTypes?.length ? selectedTypes : TYPES;
|
||||
|
||||
Reference in new issue
Block a user