Fix: 서적 편집 페이지 PDF 매칭 UI 개선
- PDF 매칭 드롭다운에서 현재 선택된 PDF가 올바르게 표시되도록 수정 - null 값과 빈 문자열 처리 개선 (option value를 null로 변경) - PDF 매칭된 문서는 녹색 배경과 상태 표시 점으로 시각적 구분 - JavaScript에서 빈 문자열을 null로 변환하여 일관성 유지
This commit is contained in:
@@ -237,7 +237,7 @@ window.bookEditorApp = () => ({
|
||||
|
||||
return window.api.updateDocument(doc.id, {
|
||||
sort_order: doc.sort_order,
|
||||
matched_pdf_id: doc.matched_pdf_id || null
|
||||
matched_pdf_id: doc.matched_pdf_id === "" ? null : doc.matched_pdf_id
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user