Skip to content

Commit c150f44

Browse files
authored
Remove Sentry Integration and Improve Frontend Stability (#173)
2 parents 2e65840 + ee2ad7b commit c150f44

24 files changed

Lines changed: 50 additions & 259 deletions

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 20.11.1

apps/admin/src/components/company/filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const CompanyFilter = () => {
8888
width={95}
8989
value={companyFilter.businessArea}
9090
options={["전체"].concat(
91-
businessAreas?.codes.map(code => code.keyword) || []
91+
businessAreas?.codes?.map(code => code.keyword) || []
9292
)}
9393
changeHandler={item => {
9494
setDropdownCompanyFilter(

apps/admin/src/components/student/employmentStatus.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useState } from "react";
22
import { BigButton, Stack } from "@/components";
3-
import { styled } from "styled-components";
43
import { AddStudent, EmploymentCurrentSituation } from "@/components";
54
import { useNavigate } from "react-router-dom";
65

apps/admin/src/components/student/employmentStatusComponent/addStudent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const AddStudent = () => {
1313
{isPending || isRefetching ? (
1414
<Loading />
1515
) : (
16-
data?.recruitments.map((company, index) => (
16+
data?.recruitments?.map((company, index) => (
1717
<AddStudentRow key={index} data={company} />
1818
))
1919
)}

apps/admin/src/components/student/employmentStatusComponent/employmentCurrentSituation.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import { useEmploymentStats } from "@/apis";
22
import { Text } from "@jobis/ui";
33
import { Loading, Stack } from "@/components";
44
import { ClassIdToLabelData } from "@/constants";
5-
import styled from "styled-components";
5+
import { styled } from "styled-components";
66
import { themes } from "@jobis/design-token";
77

88
export const EmploymentCurrentSituation = () => {
99
const { data, isPending } = useEmploymentStats();
1010

1111
return (
1212
<Container>
13-
{isPending ?? <Loading />}
14-
{data?.classes.map(item => {
13+
{isPending && <Loading />}
14+
{data?.classes?.map(item => {
1515
return (
1616
<Stack key={item.class_id} direction="column" gap={16}>
1717
<Header justify="space-between">
@@ -27,7 +27,7 @@ export const EmploymentCurrentSituation = () => {
2727
</RateText>
2828
</Header>
2929
<EmploymentRateContainer>
30-
{item.employment_rate_response_list.map(
30+
{item.employment_rate_response_list?.map(
3131
(employmentRow, index) => (
3232
<EmploymentRateItem key={index}>
3333
<Logo
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "./AddStudent";
2-
export * from "./AddStudentRow";
3-
export * from "./EmploymentCurrentSituation";
1+
export * from "./addStudent";
2+
export * from "./addStudentRow";
3+
export * from "./employmentCurrentSituation";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./EmploymentStatus";
1+
export * from "./employmentStatus";
22
export * from "./employmentStatusComponent";

apps/admin/src/pages/application.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ export const ApplicationPage = () => {
3030
}, [applicationFilter]);
3131

3232
const filteringApplications = applications?.applications
33-
.filter(
33+
?.filter(
3434
item =>
3535
item.company_name.includes(applicationFilter.companyOrStudentName) ||
3636
item.student_name.includes(applicationFilter.companyOrStudentName)
3737
)
38-
.filter(
38+
?.filter(
3939
item =>
4040
applicationFilter.status === "" ||
4141
applicationStatus[item.application_status] === applicationFilter.status

apps/admin/src/pages/company.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ export const CompanyPage = () => {
4040
};
4141

4242
const filteringCompanies = companies?.companies
43-
.filter(
43+
?.filter(
4444
item =>
4545
!companyFilter.region || item.region.includes(companyFilter.region)
4646
)
47-
.filter(
47+
?.filter(
4848
item =>
4949
!companyFilter.businessArea ||
5050
item.business_area.includes(companyFilter.businessArea)
5151
)
52-
.filter(item =>
52+
?.filter(item =>
5353
companyFilter.division
5454
? companyFilter.division === "협약기업"
5555
? item.convention
5656
: CompanyTypeEnToKr[item.company_type] === companyFilter.division
5757
: true
5858
)
59-
.filter(item => item.company_name.includes(companyFilter.companyName));
59+
?.filter(item => item.company_name.includes(companyFilter.companyName));
6060

6161
return (
6262
<Container>

apps/admin/src/pages/modal/applicantModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const ApplicantModal = ({ isRequest, status, id }: PropsType) => {
4040
}
4141
);
4242

43-
const selectStudent = data?.applications.find(
43+
const selectStudent = data?.applications?.find(
4444
item => item.application_id === selectId
4545
);
4646

@@ -81,7 +81,7 @@ export const ApplicantModal = ({ isRequest, status, id }: PropsType) => {
8181
))}
8282
</TitleWrapper>
8383
<Stack direction="column" gap={10}>
84-
{data?.applications.map((item, idx) => (
84+
{data?.applications?.map((item, idx) => (
8585
<ApplicantStudentRow
8686
key={idx}
8787
item={item}
@@ -105,7 +105,7 @@ export const ApplicantModal = ({ isRequest, status, id }: PropsType) => {
105105
</TitleWrapper>
106106
<Stack direction="column" gap={10}>
107107
{selectStudent ? (
108-
selectStudent.attachments.map((attachment, idx) => (
108+
selectStudent.attachments?.map((attachment, idx) => (
109109
<ApplicantFileRow key={idx} attachment={attachment} idx={idx} />
110110
))
111111
) : (

0 commit comments

Comments
 (0)