Add some sentry filters (#27588)

* Add some sentry filters

* Add some sentry filters

* Add ? in copyCellValue
This commit is contained in:
Joshen Lim authored and Long Hoang committed 2024-07-01 14:23:07 +08:00
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)
+1 -1
View File
@@ -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)
}
+2
View File
@@ -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,