fix: order by last created (#550)

* feat: block sync

* fix: order by last created order
This commit is contained in:
Aaryan Khandelwal 2023-03-28 01:52:13 +05:30 committed by GitHub
parent b9e42d116e
commit 37aade5ef6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 22 deletions

View file

@ -10,21 +10,19 @@ import { issueViewContext } from "contexts/issue-view.context";
import issuesService from "services/issues.service";
import cyclesService from "services/cycles.service";
import modulesService from "services/modules.service";
import stateService from "services/state.service";
// helpers
import { getStatesList } from "helpers/state.helper";
// types
import type { IIssue } from "types";
// fetch-keys
import {
CYCLE_ISSUES_WITH_PARAMS,
MODULE_ISSUES_WITH_PARAMS,
PROJECT_ISSUES_LIST_WITH_PARAMS,
STATE_LIST,
VIEW_ISSUES,
} from "constants/fetch-keys";
// types
import type { IIssue } from "types";
import viewsService from "services/views.service";
import stateService from "services/state.service";
import { getStatesList } from "helpers/state.helper";
const useIssuesView = () => {
const {
issueView,
@ -128,7 +126,7 @@ const useIssuesView = () => {
return issuesToGroup ? Object.assign(emptyStatesObject, issuesToGroup) : undefined;
return issuesToGroup;
}, [projectIssues, cycleIssues, moduleIssues]);
}, [projectIssues, cycleIssues, moduleIssues, groupByProperty]);
const isEmpty =
Object.values(groupedByIssues ?? {}).every((group) => group.length === 0) ||