fix: wrong string conversion

This commit is contained in:
Methapon Metanipat 2024-08-28 09:28:35 +07:00
parent fec6812ff6
commit 5749b85323

View file

@ -39,7 +39,7 @@ function imageLocation(id: string) {
}
function attachmentLocation(id: string, filename?: string) {
return `employee/${id}/attachment/${filename}`;
return `employee/${id}/attachment/${filename || ""}`;
}
type EmployeeCreate = {