AFFiNE/packages/common
L-Sun 3bb8253e13
fix(core): clear op history when create a new doc (#7347)
Closes: [AF-969](https://linear.app/affine-design/issue/AF-969/%E5%9C%A8%E6%96%B0%E5%BB%BA%E7%9A%84%E6%96%87%E6%A1%A3undo%E6%8A%A5%E9%94%99-%E4%B8%94%E6%97%A0%E6%B3%95%E9%87%8D%E6%96%B0%E6%89%93%E5%BC%80%E6%96%87%E6%A1%A3)

## Bug Description
When creating a new document, the user can undo directly inside the document, which will make the blocks of document empty and unable to render after opening this document again.

## What changed
Clear operation history of doc initialization.
2024-06-26 12:58:49 +00:00
..
debug chore: bump up all non-major dependencies (#6526) 2024-05-07 10:30:58 +00:00
env refactor(core): image block use peek view workflow (#7329) 2024-06-26 07:49:25 +00:00
infra fix(core): clear op history when create a new doc (#7347) 2024-06-26 12:58:49 +00:00
theme refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00