We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef03c1 commit 5cbb516Copy full SHA for 5cbb516
src/patchers/canvas-patcher.ts
@@ -49,7 +49,7 @@ export default class CanvasPatcher extends Patcher {
49
return next.call(this, state)
50
}),
51
setViewData: Patcher.OverrideExisting(next => function (json: string, ...args: any): void {
52
- json = json !== '' ? json : '{}'
+ json = json !== '' ? json : '{"nodes": [], "edges": []}'
53
54
try {
55
const canvasData = JSONC.parse(json) as CanvasData
0 commit comments