유사사례 모달 수정 (초기조회 되도록)
This commit is contained in:
@@ -82,7 +82,7 @@ export default function SimilarCaseModal({
|
||||
const titleId = useId();
|
||||
|
||||
const [mounted, setMounted] = useState(false);
|
||||
const [criterion, setCriterion] = useState<Criterion>("");
|
||||
const [criterion, setCriterion] = useState<Criterion>("supplyAmt");
|
||||
const [selectedCaseId, setSelectedCaseId] = useState<string>("");
|
||||
|
||||
useEffect(() => setMounted(true), []);
|
||||
@@ -90,7 +90,8 @@ export default function SimilarCaseModal({
|
||||
// 모달 열릴 때 초기화
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
setCriterion("");
|
||||
setCriterion("supplyAmt");
|
||||
onSearch("supplyAmt");
|
||||
setSelectedCaseId("");
|
||||
}, [open]);
|
||||
|
||||
@@ -201,7 +202,6 @@ export default function SimilarCaseModal({
|
||||
}}
|
||||
className="h-10 w-[180px] rounded-md border border-neutral-300 bg-white px-3 text-sm outline-none focus:border-neutral-500"
|
||||
>
|
||||
<option value="">유사기준선택</option>
|
||||
<option value="supplyAmt">공급량</option>
|
||||
<option value="usePurpose">이용용도</option>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user