mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
Add some sentry filters (#27588)
* Add some sentry filters * Add some sentry filters * Add ? in copyCellValue
This commit is contained in:
1 parent
d986d1eed8
commit
468e428bfc
3 files changed
+5
-2
No files matched your search
@@ -102,7 +102,8 @@ export const Grid = memo(
|
||||
const selectedCellRef = useRef<{ rowIdx: number; row: any; column: any } | null>(null)
|
||||
|
||||
function copyCellValue() {
|
||||
const selectedCellValue = selectedCellRef.current?.row[selectedCellRef.current?.column?.key]
|
||||
const selectedCellValue =
|
||||
selectedCellRef.current?.row?.[selectedCellRef.current?.column?.key]
|
||||
const text = formatClipboardValue(selectedCellValue)
|
||||
if (!text) return
|
||||
copyToClipboard(text)
|
||||
|
||||
@@ -7,7 +7,7 @@ export function deepClone(obj: unknown) {
|
||||
}
|
||||
|
||||
export function formatClipboardValue(value: any) {
|
||||
if (value === null) return ''
|
||||
if (!value) return ''
|
||||
if (typeof value == 'object' || Array.isArray(value)) {
|
||||
return JSON.stringify(value)
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ Sentry.init({
|
||||
ignoreErrors: [
|
||||
// Used exclusively in Monaco Editor.
|
||||
'ResizeObserver',
|
||||
's.getModifierState is not a function',
|
||||
/^Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope'/,
|
||||
// [Joshen] We currently use stripe-js for customers to save their credit card data
|
||||
// I'm unable to reproduce this error on local, staging nor prod across chrome, safari or firefox
|
||||
// Based on https://github.com/stripe/stripe-js/issues/26, it seems like this error is safe to ignore,
|
||||
|
||||
Reference in new issue
Block a user