mirror of
https://github.com/supabase/supabase.git
synced 2026-07-03 09:14:28 +08:00
* Consolidate copy to clipboard * Fix * Fix some extra clipboard events. * Fix the tests. Fix a small issue with the copy button. * Fix --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
8 lines
187 B
TypeScript
8 lines
187 B
TypeScript
export function formatClipboardValue(value: any) {
|
|
if (!value) return ''
|
|
if (typeof value == 'object' || Array.isArray(value)) {
|
|
return JSON.stringify(value)
|
|
}
|
|
return value
|
|
}
|