fix: order by last created (#550)
* feat: block sync * fix: order by last created order
This commit is contained in:
parent
b9e42d116e
commit
37aade5ef6
6 changed files with 33 additions and 22 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue