diff --git a/packages/home/tabs-store.tsx b/packages/home/tabs-store.tsx index 761a5b68..a1edb5f6 100644 --- a/packages/home/tabs-store.tsx +++ b/packages/home/tabs-store.tsx @@ -593,7 +593,6 @@ export class ProjectEditorTab implements IHomeTab { } if (!this.runMode) { - console.log("paste"); projectStore.paste(); } }; diff --git a/packages/project-editor/flow/components/actions/index.tsx b/packages/project-editor/flow/components/actions/index.tsx index 441206d2..2e999e2d 100644 --- a/packages/project-editor/flow/components/actions/index.tsx +++ b/packages/project-editor/flow/components/actions/index.tsx @@ -4124,10 +4124,6 @@ const TrixEditor = observer( this.setup(); } - componentDidUpdate() { - this.setup(); - } - render() { var attributes: { [key: string]: string } = { id: this.editorId, diff --git a/packages/project-editor/flow/editor/flow-document.tsx b/packages/project-editor/flow/editor/flow-document.tsx index fb416e75..d2d65b96 100644 --- a/packages/project-editor/flow/editor/flow-document.tsx +++ b/packages/project-editor/flow/editor/flow-document.tsx @@ -295,7 +295,7 @@ export class FlowDocument implements IDocument { pasteSelection = () => { if (canPasteWithDependencies(this.projectStore)) { this.flow.pasteSelection(); - } else { + } else if (this.flow.canPaste()) { this.projectStore.undoManager.setCombineCommands(true); this.flow.pasteSelection();