fix: show only filtered states when state filter is selected (#1093)

This commit is contained in:
Aaryan Khandelwal 2023-05-20 03:07:00 +05:30 committed by GitHub
parent d9642eee82
commit 8cbe6c4b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: