15 lines
320 B
TypeScript
15 lines
320 B
TypeScript
export type FinanceAttachmentItem = {
|
|
id: string
|
|
fileName: string
|
|
fileUrl: string
|
|
fileType?: string
|
|
_uploading?: boolean
|
|
}
|
|
|
|
export function financeAttachmentsToUrlString(items: FinanceAttachmentItem[]) {
|
|
return items
|
|
.filter((f) => f.fileUrl && !f._uploading)
|
|
.map((f) => f.fileUrl)
|
|
.join(',')
|
|
}
|