Skip to content

Commit

Permalink
feat: Release 0.6.11 (#837)
Browse files Browse the repository at this point in the history
Co-authored-by: afwilcox <[email protected]>
Co-authored-by: jon-funk <[email protected]>
Co-authored-by: Derek Roberts <[email protected]>
Co-authored-by: Scarlett <[email protected]>
Co-authored-by: dmitri-korin-bcps <[email protected]>
  • Loading branch information
6 people authored Dec 19, 2024
1 parent a850f88 commit 31b73ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/src/v1/complaint/complaint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ export class ComplaintService {
token?: string,
): Promise<SearchResults> => {
try {
this.logger.error("Searching for complaints");
let results: SearchResults = { totalCount: 0, complaints: [] };

const { orderBy, sortBy, page, pageSize, query, ...filters } = model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC, useRef, useState, useContext, useEffect } from "react";
import { FC, useRef, useState, useContext, useEffect, useCallback } from "react";
import { useAppDispatch, useAppSelector } from "@hooks/hooks";
import COMPLAINT_TYPES from "@apptypes/app/complaint-types";
import {
Expand Down Expand Up @@ -173,10 +173,10 @@ export const ComplaintList: FC<Props> = ({ type, searchQuery }) => {
}
};

const handlePageChange = (page: number) => {
const handlePageChange = useCallback((page: number) => {
setPage(page);
scrollToTop();
};
}, []);

// Scroll to top of table container when paginating
const divRef = useRef<HTMLDivElement>(null);
Expand Down

0 comments on commit 31b73ae

Please sign in to comment.