mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-22 18:54:27 +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,
|
width: 70,
|
||||||
ellipsis: false,
|
ellipsis: false,
|
||||||
render: (field, record): JSX.Element => {
|
render: (field, record): JSX.Element => {
|
||||||
|
const textToCopy = field.slice(1, -1);
|
||||||
|
|
||||||
if (record.field === 'body') {
|
if (record.field === 'body') {
|
||||||
const parsedBody = recursiveParseJSON(field);
|
const parsedBody = recursiveParseJSON(field);
|
||||||
if (!isEmpty(parsedBody)) {
|
if (!isEmpty(parsedBody)) {
|
||||||
@ -174,7 +176,7 @@ function TableView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CopyClipboardHOC textToCopy={field}>
|
<CopyClipboardHOC textToCopy={textToCopy}>
|
||||||
<span style={{ color: orange[6] }}>{field}</span>
|
<span style={{ color: orange[6] }}>{field}</span>
|
||||||
</CopyClipboardHOC>
|
</CopyClipboardHOC>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user