Skip to content

Commit

Permalink
fix: copy numeric cells
Browse files Browse the repository at this point in the history
  • Loading branch information
invm committed Aug 2, 2024
1 parent 91c90c2 commit 6f2b4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Screens/Console/Content/QueryTab/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const Editor = (props: { editorTheme: EditorTheme }) => {
};

const copyQueryToClipboard = () => {
navigator.clipboard.writeText(code());
navigator.clipboard.writeText(String(code()));
};

createEffect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const PopupCellRenderer = (props: PopupCellRendererProps) => {
await writeText(JSON.stringify(props.data)).catch((e) => console.error(e));
}
if (option === 'copy-cell') {
await writeText(props.value);
await writeText(String(props.value));
}

if (option === 'add-row') {
Expand Down

0 comments on commit 6f2b4f8

Please sign in to comment.