mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-22 12:04:24 +08:00
fix: copy to clipboard without quotes (#3605)
This commit is contained in:
parent
4bbe1ea614
commit
92ba46b2f5
@ -164,6 +164,8 @@ function TableView({
|
||||
width: 70,
|
||||
ellipsis: false,
|
||||
render: (field, record): JSX.Element => {
|
||||
const textToCopy = field.slice(1, -1);
|
||||
|
||||
if (record.field === 'body') {
|
||||
const parsedBody = recursiveParseJSON(field);
|
||||
if (!isEmpty(parsedBody)) {
|
||||
@ -174,7 +176,7 @@ function TableView({
|
||||
}
|
||||
|
||||
return (
|
||||
<CopyClipboardHOC textToCopy={field}>
|
||||
<CopyClipboardHOC textToCopy={textToCopy}>
|
||||
<span style={{ color: orange[6] }}>{field}</span>
|
||||
</CopyClipboardHOC>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user