Repro:
Open this link: New Space Browser
There is a Query Block. Edit the Query Block
Try to change the View to Table or List.
See the error:
Solution
Changing a query view from read mode reapplied the editor content. The old replacement code inserted new blocks before deleting the originals in separate transactions, temporarily exposing duplicate block IDs and stale positions. This caused the “Block type does not match” error.
The fix replaces blocks in a single transaction and corrects insertion offsets when blocks are removed out of document order. Query views can now switch between Card, Table, and List without crashing or losing content.
Added five unit tests and two browser regressions. Verified the reported document in the editor harness and view switching, local publication, and reopening in Linux Electron. Six package typechecks and 15 browser tests passed; one existing editor unit test still fails, and full CI was blocked by the missing Docker socket.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime