[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-06-28 06:34:22 +00:00 committed by Gabriel Luiz Freitas Almeida
commit 6def02d3d1

View file

@ -228,8 +228,13 @@ export default function Page({
}
function handleCopy(e: KeyboardEvent) {
const multipleSelection = lastSelection?.nodes ? lastSelection?.nodes.length > 0 : false;
if (!isWrappedWithClass(e, "nocopy") && (isWrappedWithClass(e, "react-flow__node") || multipleSelection)) {
const multipleSelection = lastSelection?.nodes
? lastSelection?.nodes.length > 0
: false;
if (
!isWrappedWithClass(e, "nocopy") &&
(isWrappedWithClass(e, "react-flow__node") || multipleSelection)
) {
e.preventDefault();
(e as unknown as Event).stopImmediatePropagation();
if (window.getSelection()?.toString().length === 0 && lastSelection) {