File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ function QuestionDetailPage() {
307
307
308
308
if ( response . error ) {
309
309
if ( response . status === 409 ) {
310
- showErrorToast ( '답변이 달린 게시물은 삭제할 수 없습니다. ' ) ;
310
+ showErrorToast ( '답변이 달린 게시물은 삭제할 수 없습니다.' ) ;
311
311
return ;
312
312
}
313
313
throw new Error ( '요청 처리 중 오류가 발생했습니다.' ) ;
@@ -412,7 +412,6 @@ function QuestionDetailPage() {
412
412
< li onClick = { handleClickEdit } className = "dropdown-item-edit" >
413
413
수정
414
414
</ li >
415
-
416
415
< li onClick = { handleClickDelete } className = "dropdown-item-delete" >
417
416
삭제
418
417
</ li >
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ function CompanyInfoPage() {
189
189
if ( data ) {
190
190
setCompanyData ( data . data ) ;
191
191
setTotalPages ( data . data . totalPages ) ;
192
+
192
193
setQuestionsCount ( data . data . questionCount ) ;
193
194
} else {
194
195
throw new Error ( '데이터가 존재하지 않습니다.' ) ;
@@ -324,6 +325,7 @@ function CompanyInfoPage() {
324
325
reward = { question . reward }
325
326
companyData = { companyData }
326
327
viewCount = { question . questionViewCount }
328
+ questionCategory = { question . questionCategory }
327
329
/>
328
330
) ) }
329
331
</ QuestionList >
@@ -343,6 +345,7 @@ function CompanyInfoPage() {
343
345
reward = { question . reward }
344
346
companyData = { companyData }
345
347
viewCount = { question . questionViewCount }
348
+ questionCategory = { question . questionCategory }
346
349
/>
347
350
) ) }
348
351
</ QuestionList >
Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ interface QuestionModulesProps {
78
78
createAt : string ;
79
79
questionContent : string ;
80
80
reward : number ;
81
- companyData : CompanInfoProps ;
81
+ companyData ? : CompanInfoProps ;
82
82
viewCount : number ;
83
+ questionCategory ?: string ;
83
84
}
84
85
85
86
function QuestionModule ( {
@@ -91,8 +92,8 @@ function QuestionModule({
91
92
createAt,
92
93
reward,
93
94
questionerTag,
94
- companyData,
95
95
viewCount,
96
+ questionCategory,
96
97
} : QuestionModulesProps ) {
97
98
const navigate = useNavigate ( ) ;
98
99
@@ -130,11 +131,7 @@ function QuestionModule({
130
131
{ truncateTitle ( questionTitle ) }
131
132
</ div >
132
133
</ div >
133
- < div className = "category-select-style" >
134
- { companyData ?. questions ?. map (
135
- ( question ) => question . questionCategory ,
136
- ) }
137
- </ div >
134
+ < div className = "category-select-style" > { questionCategory } </ div >
138
135
</ div >
139
136
140
137
< div className = "view-container" >
You can’t perform that action at this time.
0 commit comments