fix(kanban_view): clear route_options

Clears query params. in route. This resolves the issue where switching from 1 kanban view to another overwrites the filters present in the switched board resulting in a Not Saved status.
This commit is contained in:
AarDG10 2026-03-23 22:09:30 +05:30
parent 8c324706e8
commit 3c21467479

View file

@ -28,6 +28,7 @@ frappe.views.KanbanView = class KanbanView extends frappe.views.ListView {
show() {
frappe.views.KanbanView.get_kanbans(this.doctype).then((kanbans) => {
frappe.route_options = {};
if (!kanbans.length) {
return frappe.views.KanbanView.show_kanban_dialog(this.doctype, true);
} else if (kanbans.length && frappe.get_route().length !== 4) {