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:
parent
8c324706e8
commit
3c21467479
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ frappe.views.KanbanView = class KanbanView extends frappe.views.ListView {
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
frappe.views.KanbanView.get_kanbans(this.doctype).then((kanbans) => {
|
frappe.views.KanbanView.get_kanbans(this.doctype).then((kanbans) => {
|
||||||
|
frappe.route_options = {};
|
||||||
if (!kanbans.length) {
|
if (!kanbans.length) {
|
||||||
return frappe.views.KanbanView.show_kanban_dialog(this.doctype, true);
|
return frappe.views.KanbanView.show_kanban_dialog(this.doctype, true);
|
||||||
} else if (kanbans.length && frappe.get_route().length !== 4) {
|
} else if (kanbans.length && frappe.get_route().length !== 4) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue