Fix
This commit is contained in:
parent
eaa3c410d1
commit
d15881edd3
|
@ -36,9 +36,9 @@ export async function generateRows(
|
||||||
for (const attachmentValue of entry[column.name]) {
|
for (const attachmentValue of entry[column.name]) {
|
||||||
let attachment
|
let attachment
|
||||||
if (typeof attachmentValue === "object") {
|
if (typeof attachmentValue === "object") {
|
||||||
attachment = await uploadUrl(attachmentValue)
|
|
||||||
} else {
|
|
||||||
attachment = await uploadFile(attachmentValue)
|
attachment = await uploadFile(attachmentValue)
|
||||||
|
} else {
|
||||||
|
attachment = await uploadUrl(attachmentValue)
|
||||||
}
|
}
|
||||||
if (attachment) {
|
if (attachment) {
|
||||||
attachmentData[column.name].push(attachment)
|
attachmentData[column.name].push(attachment)
|
||||||
|
|
Loading…
Reference in New Issue