Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz authored and erinz2020 committed Sep 5, 2023
1 parent 33bbc30 commit 4de788f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/models/auditLogs/useFilterAuditLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function useFilterAuditLogs({ queries, params = {} }) {
...params,
},
dataAccessor: result => {
console.log('result', result);
const resultCountString = get(result, [
'data',
'headers',
Expand Down
15 changes: 2 additions & 13 deletions src/models/auditLogs/useGetAuditLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,11 @@ import useFetch from '../../hooks/useFetch';

export default function useGetAuditLogs(entity_guid) {
return useFetch({
queryKey: entity_guid ? getAuditLogQueryKey(entity_guid) : getAuditLogQueryKey(),
url: entity_guid ? `/audit_logs/${entity_guid}` : '/audit_logs',
queryKey: getAuditLogQueryKey(entity_guid),
url: `/audit_logs/${entity_guid}`,
queryOptions: {
enabled: Boolean(entity_guid),
retry: 1,
},
});
}

export function useGetAllAuditLogs() {
return useFetch({
queryKey: getAuditLogQueryKey(),
url: '/audit_logs',
queryOptions: {
enabled: true,
retry: 1,
},
});
}
2 changes: 1 addition & 1 deletion src/pages/sighting/SearchSightings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import SearchFilterList from '../../components/SearchFilterList';
import ElasticsearchSightingsDisplay from '../../components/dataDisplays/ElasticsearchSightingsDisplay';
import Paginator from '../../components/dataDisplays/Paginator';

const rowsPerPage = 3;
const rowsPerPage = 100;

export default function SearchSightings() {
const [formFilters, setFormFilters] = useState([]);
Expand Down

0 comments on commit 4de788f

Please sign in to comment.