forked from github/plane
fix: show only filtered states when state filter is selected (#1093)
This commit is contained in:
parent
d9642eee82
commit
8cbe6c4b36
@ -129,9 +129,12 @@ const useIssuesView = () => {
|
||||
? backlogStatesList.map((state) => state.id)
|
||||
: statesList.map((state) => state.id);
|
||||
|
||||
const filteredStateIds =
|
||||
filters && filters?.state ? stateIds.filter((s) => filters.state?.includes(s)) : stateIds;
|
||||
|
||||
const emptyStatesObject: { [key: string]: [] } = {};
|
||||
for (let i = 0; i < stateIds.length; i++) {
|
||||
emptyStatesObject[stateIds[i]] = [];
|
||||
for (let i = 0; i < filteredStateIds.length; i++) {
|
||||
emptyStatesObject[filteredStateIds[i]] = [];
|
||||
}
|
||||
|
||||
const groupedByIssues:
|
||||
|
Loading…
Reference in New Issue
Block a user