Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 78cb7a5

Browse files
committed
fixed issue 68
1 parent a1377f8 commit 78cb7a5

File tree

1 file changed

+6
-1
lines changed
  • src/routes/PositionDetails/components/PositionCandidates

1 file changed

+6
-1
lines changed

src/routes/PositionDetails/components/PositionCandidates/index.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Show a list of position candidates with sort select and pagination.
55
*/
6-
import React, { useMemo, useState, useCallback } from "react";
6+
import React, { useMemo, useState, useCallback, useEffect } from "react";
77
import PT from "prop-types";
88
import _ from "lodash";
99
import CardHeader from "components/CardHeader";
@@ -57,6 +57,11 @@ const populateSkillsMatched = (position, candidate) => ({
5757
const PositionCandidates = ({ position, candidateStatus, updateCandidate }) => {
5858
const { candidates } = position;
5959
const [sortBy, setSortBy] = useState(CANDIDATES_SORT_BY.SKILL_MATCHED);
60+
61+
useEffect(() => {
62+
setPage(1);
63+
}, [candidateStatus])
64+
6065
const filteredCandidates = useMemo(
6166
() =>
6267
_.chain(candidates)

0 commit comments

Comments
 (0)