From 5b0994f2af11c77b61ac59df6211ccb20fae4d44 Mon Sep 17 00:00:00 2001 From: 0-Zz-ang Date: Tue, 28 Oct 2025 14:57:14 +0900 Subject: (박서영)준법설문 관련요구사항 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/basic-contract/viewer/SurveyComponent.tsx | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'lib/basic-contract/viewer/SurveyComponent.tsx') diff --git a/lib/basic-contract/viewer/SurveyComponent.tsx b/lib/basic-contract/viewer/SurveyComponent.tsx index 299fe6fa..8662155e 100644 --- a/lib/basic-contract/viewer/SurveyComponent.tsx +++ b/lib/basic-contract/viewer/SurveyComponent.tsx @@ -34,6 +34,7 @@ interface SurveyComponentProps { contractId?: number; surveyTemplate: SurveyTemplateWithQuestions | null; surveyLoading: boolean; + surveyLoadAttempted?: boolean; // 로드 시도 여부 추가 conditionalHandler: ConditionalSurveyHandler | null; onSurveyComplete?: () => void; onSurveyDataUpdate: (data: any) => void; @@ -45,6 +46,7 @@ export const SurveyComponent: React.FC = ({ contractId, surveyTemplate, surveyLoading, + surveyLoadAttempted = false, conditionalHandler, onSurveyComplete, onSurveyDataUpdate, @@ -487,7 +489,21 @@ export const SurveyComponent: React.FC = ({ ); } + if (!surveyTemplate) { + if (!surveyLoadAttempted) { + return ( +
+ + + +

설문조사를 준비하는 중...

+
+
+
+ ); + } + return (
@@ -836,8 +852,8 @@ export const SurveyComponent: React.FC = ({ {uploadedFiles[question.id].map((file, index) => (
- {file.fileName} - ({(file.fileSize / 1024).toFixed(1)} KB) + {file.name || file.fileName} + ({((file.size || file.fileSize || 0) / 1024).toFixed(1)} KB)
))}
-- cgit v1.2.3