Skip to content

Commit d26d666

Browse files
Fixed bug where canvas gets cleared after pasting a node
1 parent 30f2cef commit d26d666

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "advanced-canvas",
33
"name": "Advanced Canvas",
4-
"version": "2.6.0",
4+
"version": "2.6.1",
55
"minAppVersion": "1.1.0",
66
"description": "Supercharge your canvas experience! Create presentations, flowcharts and more!",
77
"author": "Developer-Mike",

src/events/canvas-event-emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class CanvasEventEmitter {
133133
}
134134

135135
if (!silent) that.triggerWorkspaceEvent(CanvasEvent.LoadData, this, data, setData)
136-
const result = next.call(this, data, canvasView)
136+
const result = next.call(this, data, clearCanvas)
137137
that.emitEventsForUnknownDataChanges(this)
138138
return result
139139
},

0 commit comments

Comments
 (0)