Browse Source

refactor(nc-gui): filter attachment and ltar cells from copy

pull/3816/head
braks 2 years ago
parent
commit
1450894266
  1. 10
      packages/nc-gui/composables/useMultiSelect/index.ts

10
packages/nc-gui/composables/useMultiSelect/index.ts

@ -1,6 +1,6 @@
import type { MaybeRef } from '@vueuse/core' import type { MaybeRef } from '@vueuse/core'
import { message } from 'ant-design-vue' import { UITypes } from 'nocodb-sdk'
import { reactive, unref, useCopy, useEventListener, useI18n } from '#imports' import { message, reactive, unref, useCopy, useEventListener, useI18n } from '#imports'
interface SelectedBlock { interface SelectedBlock {
row: number | null row: number | null
@ -213,7 +213,11 @@ export function useMultiSelect(
cprows.forEach((row) => { cprows.forEach((row) => {
cpcols.forEach((col) => { cpcols.forEach((col) => {
cptext = `${cptext} ${row.row[col.title]} \t` // todo: JSON stringify the attachment cell and LTAR contents for copy
// filter attachment cells and LATR cells from copy
if (col.uidt === UITypes.Attachment || col.uidt === UITypes.LinkToAnotherRecord) {
cptext = `${cptext} ${row.row[col.title]} \t`
}
}) })
cptext = `${cptext.trim()}\n` cptext = `${cptext.trim()}\n`

Loading…
Cancel
Save