MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onClipboardCopy

Function onClipboardCopy

packages/ui/src/ui-component/json/JsonEditor.jsx:41–48  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

39 }
40
41 const onClipboardCopy = (e) => {
42 const src = e.src
43 if (Array.isArray(src) || typeof src === 'object') {
44 navigator.clipboard.writeText(JSON.stringify(src, null, ' '))
45 } else {
46 navigator.clipboard.writeText(src)
47 }
48 }
49
50 useEffect(() => {
51 if (!disabled && nodes && edges && nodeId && inputParam) {

Callers 1

JsonEditorInputFunction · 0.70

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected