diff --git a/src/components/Screens/Console/Content/QueryTab/Editor.tsx b/src/components/Screens/Console/Content/QueryTab/Editor.tsx index cc5fea0..9ebdb8f 100644 --- a/src/components/Screens/Console/Content/QueryTab/Editor.tsx +++ b/src/components/Screens/Console/Content/QueryTab/Editor.tsx @@ -130,7 +130,7 @@ export const Editor = (props: { editorTheme: EditorTheme }) => { }; const copyQueryToClipboard = () => { - navigator.clipboard.writeText(code()); + navigator.clipboard.writeText(String(code())); }; createEffect( diff --git a/src/components/Screens/Console/Content/QueryTab/Table/PopupCellRenderer.tsx b/src/components/Screens/Console/Content/QueryTab/Table/PopupCellRenderer.tsx index 129b8d6..828fa2a 100644 --- a/src/components/Screens/Console/Content/QueryTab/Table/PopupCellRenderer.tsx +++ b/src/components/Screens/Console/Content/QueryTab/Table/PopupCellRenderer.tsx @@ -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') {