refactor: integrated global list view everywhere

This commit is contained in:
Aaryan Khandelwal
2023-02-05 16:57:37 +05:30
parent 85b7f39ed3
commit d673aedf48
24 changed files with 938 additions and 1172 deletions

View File

@@ -65,6 +65,8 @@ const useIssueView = (projectIssues: IIssue[]) => {
...groupBy(projectIssues ?? [], groupByProperty ?? ""),
};
if (groupByProperty === "priority") delete groupedByIssues.None;
if (orderBy) {
groupedByIssues = Object.fromEntries(
Object.entries(groupedByIssues).map(([key, value]) => [
@@ -74,7 +76,7 @@ const useIssueView = (projectIssues: IIssue[]) => {
);
}
if (filterIssue !== null) {
if (filterIssue) {
if (filterIssue === "activeIssue") {
const filteredStates = states?.filter(
(state) => state.group === "started" || state.group === "unstarted"