Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 6ff85c4

Browse files
committed
fix(plugins/plugin-client-common): ClipboardTransfer emits errors when pasting non-json text
Fixes #5836
1 parent bba1af4 commit 6ff85c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/plugin-client-common/src/components/Views/Terminal/ClipboardTransfer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ export function onPaste(this: ScrollableTerminal, evt: ClipboardEvent) {
110110
this.onExecEnd(uuid, false, complete, target.insertionIdx)
111111
}
112112
} catch (err) {
113-
console.error(err)
113+
// console.error(err)
114+
// ok! this just means the user pasted something that isn't JSON
115+
// see https://github.com/IBM/kui/issues/5836
114116
}
115117
}
116118
}

0 commit comments

Comments
 (0)