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

Commit 3610543

Browse files
committed
fix error when no interviews arrays
1 parent f5af4dc commit 3610543

File tree

1 file changed

+3
-3
lines changed
  • src/routes/PositionDetails/components/PositionCandidates

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => {
212212
);
213213

214214
/*
215-
* Useeffect to check if calendar has been connected, then remove params
215+
* Useeffect to check if calendar has been connected, then remove params
216216
* found in redirected url and show toast notification
217217
*/
218218
useEffect(() => {
@@ -336,8 +336,8 @@ const PositionCandidates = ({ position, statusFilterKey, updateCandidate }) => {
336336
action: () => {
337337
openInterviewDetailsPopup(candidate);
338338
},
339-
disabled: candidate.interviews.length === 3,
340-
disabledReason: candidate.interviews.length === 3 ? DISABLED_SCHEDULE_INTERVIEW: ''
339+
disabled: candidate.interviews && candidate.interviews.length === 3,
340+
disabledReason: candidate.interviews && candidate.interviews.length === 3 ? DISABLED_SCHEDULE_INTERVIEW: ''
341341
},
342342
{
343343
label: "View Previous Interviews",

0 commit comments

Comments
 (0)