We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ddbefe commit a4e0a43Copy full SHA for a4e0a43
frontend/src/views/chat/component/charts/Table.ts
@@ -107,8 +107,13 @@ function copyData(event: any, s2?: TableSheet) {
107
} else if (cells.length == 1) {
108
const c = cells[0]
109
const cellMeta = s2.facet.getCellMeta(c.rowIndex, c.colIndex)
110
+ console.log(cellMeta)
111
if (cellMeta) {
- copyToClipboard(cellMeta.fieldValue as string).finally(() => {
112
+ let value = cellMeta.value as string
113
+ if (value === null || value === undefined) {
114
+ value = ''
115
+ }
116
+ copyToClipboard(value).finally(() => {
117
ElMessage.success(t('qa.copied'))
118
console.debug('copied:', cellMeta.fieldValue)
119
})
0 commit comments