Skip to content

Commit

Permalink
fixed save empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Mar 27, 2024
1 parent 53f4ca2 commit 7964499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/vanilla/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function Editor({ standaloneServer = false }) {
console.log('dom changed')

const html = canvasRef.current!.innerHTML
savePage(html)
if (html) savePage(html)
}),
)
observer.observe(canvasRef.current!, config)
Expand Down

0 comments on commit 7964499

Please sign in to comment.