fix: [제품검사 요청서] EAV 문서 없을 때 legacy fallback 적용

- useFqcMode && fqcDocument 조건으로 변경
- requestDocumentId 없는 기존 데이터에서 빈 양식 표시되던 문제 수정
This commit is contained in:
2026-03-06 22:02:39 +09:00
parent 4ea03922a3
commit e75d8f9b25

View File

@@ -125,11 +125,11 @@ export function InspectionRequestModal({
<Loader2 className="w-6 h-6 animate-spin text-muted-foreground" />
<span className="ml-2 text-muted-foreground"> ...</span>
</div>
) : useFqcMode ? (
) : useFqcMode && fqcDocument ? (
<div ref={contentWrapperRef}>
<FqcRequestDocumentContent
template={fqcDocument?.template ?? fqcTemplate}
documentData={fqcDocument?.data}
template={fqcDocument.template ?? fqcTemplate}
documentData={fqcDocument.data}
documentNo={documentNo}
createdDate={createdDate}
readonly={true}