[Bug] My page disappear when a delete the first view
Bug Description
When I create a grid, and then I create another view, I want to delete the first view which is the grid view.
But when I do this, the page disappear from the sidebar, but the view remains it visible in my current window.
How to Reproduce
- Create a grid
- Add another view
- Delete grid view
Expected Behavior
The page remains present in the sidebar and the view is deleted.
Operating System
MacOS
AppFlowy Version(s)
0.6.8
Screenshots
https://github.com/user-attachments/assets/3fd4b072-b125-49b0-b24d-5d0e9f3955a4
Additional Context
No response
If the first view is deleted, the page will be deleted. This is by design as the page is associated with the first view. We'll need to improve the message to warn the user before deleting and handle the behavior of the deleted database page.
Hello @annieappflowy ,
Why don't fallback to the other view instead of deleting the page ?
The page should be deleted if no view remaining no ?