Browse Source

fix: Fixed non string value copy of cells

pull/6922/head
Muhammed Mustafa 1 year ago
parent
commit
159c5ea328
  1. 5
      packages/nc-gui/composables/useMultiSelect/index.ts

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

@ -108,10 +108,11 @@ export function useMultiSelect(
} }
const valueToCopy = (rowObj: Row, columnObj: ColumnType) => { const valueToCopy = (rowObj: Row, columnObj: ColumnType) => {
let textToCopy = (columnObj.title && rowObj.row[columnObj.title]) || '' const valueToCopy = columnObj.title && rowObj.row[columnObj.title]
let textToCopy: string = String(columnObj.title && rowObj.row[columnObj.title]) || ''
if (columnObj.uidt === UITypes.Checkbox) { if (columnObj.uidt === UITypes.Checkbox) {
textToCopy = !!textToCopy textToCopy = String(!!valueToCopy)
} }
if (typeof textToCopy === 'object') { if (typeof textToCopy === 'object') {

Loading…
Cancel
Save