fix: 지붕재 카테고리 미선택 후 pdf 다운로드 시 파일명에 카테고리 미표출하도록 수정
This commit is contained in:
parent
83360d9ac6
commit
e1e238e6a3
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user