chore(frontend): fix PeoplePage memo deps lint

This commit is contained in:
Abhimanyu Saharan
2026-02-02 13:11:20 +05:30
parent ed33156148
commit 6e519ed383

View File

@@ -24,8 +24,8 @@ export default function PeoplePage() {
const employees = useListEmployeesEmployeesGet(); const employees = useListEmployeesEmployeesGet();
const departments = useListDepartmentsDepartmentsGet(); const departments = useListDepartmentsDepartmentsGet();
const departmentList = departments.data ?? []; const departmentList = useMemo(() => departments.data ?? [], [departments.data]);
const employeeList = employees.data ?? []; const employeeList = useMemo(() => employees.data ?? [], [employees.data]);
const createEmployee = useCreateEmployeeEmployeesPost({ const createEmployee = useCreateEmployeeEmployeesPost({
mutation: { mutation: {