fix: attachment paste

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-06-09 02:50:57 +03:00
parent 4d79a04923
commit 6fa5e5cb0d

View File

@@ -82,7 +82,7 @@ export default function convertCellData(
} catch (e) {
throw new Error('Invalid attachment data')
}
if (parsedVal.some((v: any) => v && !(v.url || v.data))) {
if (parsedVal.some((v: any) => v && !(v.url || v.data || v.path))) {
throw new Error('Invalid attachment data')
}
// TODO(refactor): duplicate logic in attachment/utils.ts