Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apps/admin/src/components/problem/ChildProblemSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const ChildProblemSection = ({
};

return {
// id: blockData.id || 0,
// id: blockData.id ?? 0,
rank: index,
type: blockData.type,
data: blockData.data || blockData.content,
Expand Down Expand Up @@ -233,9 +233,9 @@ export const ChildProblemSection = ({
<SectionCard>
<div className='flex items-baseline gap-[1.6rem]'>
<h3 className='font-bold-32 text-black'>새끼 문제 등록</h3>
<p className='font-medium-14 text-lightgray500'>
{/* <p className='font-medium-14 text-lightgray500'>
새끼 문제은 저장 후 항목 추가가 불가능해요
</p>
</p> */}
</div>

<div className='mt-800 flex flex-col gap-1600'>
Expand Down Expand Up @@ -291,6 +291,7 @@ export const ChildProblemSection = ({
<AnswerInput.AnswerInputSection
selectedAnswerType={watchedAnswerType}
selectedAnswer={watchedAnswer}
isError={false}
{...register(`childProblems.${index}.answer`, { valueAsNumber: true })}
/>
</AnswerInput>
Expand Down
Loading
Loading