Merge pull request 'fix: 지붕재 카테고리 미선택 후 pdf 다운로드 시 파일명에 카테고리 미표출하도록 수정' (#85) from feature/suitable into dev

Reviewed-on: #85
This commit is contained in:
seul 2025-07-01 17:09:59 +09:00
commit 2cfa59e1ea

View File

@ -285,9 +285,9 @@ export function useSuitable() {
const downloadSuitablePdf = async (): Promise<void> => {
try {
const { ids, detailIds } = serializeSelectedItems()
const fileTitle = `(${
suitableCommCode.get(SUITABLE_HEAD_CODE.ROOF_MATL_GRP_CD)?.find((category) => category.code === searchCategory)?.codeJp
}) `
const category = suitableCommCode.get(SUITABLE_HEAD_CODE.ROOF_MATL_GRP_CD)?.find((category) => category.code === searchCategory)?.codeJp
const fileTitle = category ? `(${category}) 屋根材適合表` : '屋根材適合表'
const form = document.createElement('form')
form.method = 'POST'