Skip to content

[Bug] [Company Admin] Application crashes with "Something went wrong!" when clicking "Calls" tab #340

@Fdkobler

Description

@Fdkobler

Title: [Bug] [Company Admin] Application crashes with "Something went wrong!" when clicking "Calls" tab

User Context: * Role: Company Admin (Natalie Prescott)

Description:
When a Company Admin attempts to view the Calls tab within a candidate's application details, the application completely crashes and displays a "Something went wrong! Try again" error message. This appears to be caused by a front-end TypeError when the system attempts to process an unauthorized API response.

Steps to Reproduce:

Log in to the staging environment as a Company Admin.

Navigate to the Applications page.

Click on a specific candidate application (e.g., Floyd Onboarding).

In the candidate details sidebar, click on the Calls tab.

Expected Result:
The user should see a list of scheduled or completed calls, or a message stating "No calls found."

Actual Result:
The page turns white and displays "Something went wrong!".

Technical Notes (from Dev Console):

Error: TypeError: Cannot read properties of undefined (reading 'map').

Failed Request: GET https://api.staging.splits.network/v1/recruiter-calls returned a 403 Forbidden status.

Diagnosis: The front-end is likely expecting an array of call data to .map() over. Because the API is returning a 403 Forbidden (possibly due to permissions issues for Company Admins accessing recruiter-specific call logs), the variable is undefined, causing the React component to crash the entire view.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions