Project view is not changed when currently selected view is deleted #2232

Closed
opened 2024-03-23 12:09:58 +00:00 by waza-ari · 0 comments
Contributor

Description

The currently selected project view is not changed when this view is deleted. This effectively breaks the project until the projectView entry in the browsers local storage is cleared. To reproduce:

  • Create a new project and stay on the list view
  • Delete the list view
  • The list view is still selected as view, so nothing gets rendered when opening the project
  • Deleting the projectView entry in local storage fixes the issue

The project view should be adjusted when deleting a view, but we also need to consider the case when a different user has selected this view by default, which now no longer exists.

Vikunja Version

unstable

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

### Description The currently selected project view is not changed when this view is deleted. This effectively breaks the project until the `projectView` entry in the browsers local storage is cleared. To reproduce: - Create a new project and stay on the list view - Delete the list view - The list view is still selected as view, so nothing gets rendered when opening the project - Deleting the `projectView` entry in local storage fixes the issue The project view should be adjusted when deleting a view, but we also need to consider the case when a different user has selected this view by default, which now no longer exists. ### Vikunja Version unstable ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
waza-ari added the
kind/bug
label 2024-03-23 12:09:58 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2232
No description provided.