fix(kanban): filter dashboard board by selected tenant
This commit is contained in:
3
plugins/kanban/dashboard/dist/index.js
vendored
3
plugins/kanban/dashboard/dist/index.js
vendored
@@ -511,6 +511,7 @@
|
||||
if (!boardData) return null;
|
||||
const q = search.trim().toLowerCase();
|
||||
const filterTask = function (t) {
|
||||
if (tenantFilter && t.tenant !== tenantFilter) return false;
|
||||
if (assigneeFilter && t.assignee !== assigneeFilter) return false;
|
||||
if (q) {
|
||||
const hay = `${t.id} ${t.title || ""} ${t.assignee || ""} ${t.tenant || ""}`.toLowerCase();
|
||||
@@ -523,7 +524,7 @@
|
||||
return Object.assign({}, col, { tasks: col.tasks.filter(filterTask) });
|
||||
}),
|
||||
});
|
||||
}, [boardData, assigneeFilter, search]);
|
||||
}, [boardData, tenantFilter, assigneeFilter, search]);
|
||||
|
||||
// --- actions ------------------------------------------------------------
|
||||
const moveTask = useCallback(function (taskId, newStatus) {
|
||||
|
||||
Reference in New Issue
Block a user