Commit c89f00d6 authored by Florie Guibert's avatar Florie Guibert

Boards - Sort closed issues by closedAt date

Changelog: fixed
parent c92f1419
...@@ -43,7 +43,9 @@ export function formatListIssues(listIssues) { ...@@ -43,7 +43,9 @@ export function formatListIssues(listIssues) {
let sortedIssues = list.issues.edges.map((issueNode) => ({ let sortedIssues = list.issues.edges.map((issueNode) => ({
...issueNode.node, ...issueNode.node,
})); }));
if (list.listType !== ListType.closed) {
sortedIssues = sortBy(sortedIssues, 'relativePosition'); sortedIssues = sortBy(sortedIssues, 'relativePosition');
}
return { return {
...map, ...map,
......
...@@ -16,6 +16,7 @@ query ListIssues( ...@@ -16,6 +16,7 @@ query ListIssues(
nodes { nodes {
id id
issuesCount issuesCount
listType
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
edges { edges {
node { node {
...@@ -37,6 +38,7 @@ query ListIssues( ...@@ -37,6 +38,7 @@ query ListIssues(
nodes { nodes {
id id
issuesCount issuesCount
listType
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
edges { edges {
node { node {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment