Browse Source

fix: attachment paste

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year ago
parent
commit
6fa5e5cb0d
  1. 2
      packages/nc-gui/composables/useMultiSelect/convertCellData.ts

2
packages/nc-gui/composables/useMultiSelect/convertCellData.ts

@ -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

Loading…
Cancel
Save