fix: kanban filters fixes (#26605)

* fix(kanban): don't concat old cards after filter

- this was messing up rendering filtered cards

* fix: refresh not working without standard fields
This commit is contained in:
Rutwik Hiwalkar 2024-05-30 12:38:22 +05:30 committed by GitHub
parent 0c01da43e9
commit d09ef5431f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -762,6 +762,10 @@ class FilterArea {
}
return frappe.run_serially(promises).then(() => {
this.trigger_refresh = true;
if (promises.length === 0) {
// refresh if there are no standard fields
this.debounced_refresh_list_view();
}
});
}

View file

@ -53,7 +53,6 @@ frappe.provide("frappe.views");
var state = context.state;
var _cards = cards
.map((card) => prepare_card(card, state))
.concat(state.cards)
.uniqBy((card) => card.name);
context.commit("update_state", {