fix
This commit is contained in:
parent
39143e1998
commit
d90052cfd1
3 changed files with 1 additions and 16 deletions
|
|
@ -154,13 +154,7 @@ async function fetchRecentRuns() {
|
|||
|
||||
function renderTaskList() {
|
||||
const sortedTasks = [...state.tasks].sort((a, b) => {
|
||||
const aDate = a.runs && a.runs.length > 0
|
||||
? new Date(a.runs[0].created_at)
|
||||
: new Date(a.created_at);
|
||||
const bDate = b.runs && b.runs.length > 0
|
||||
? new Date(b.runs[0].created_at)
|
||||
: new Date(b.created_at);
|
||||
return bDate - aDate;
|
||||
return new Date(b.created_at) - new Date(a.created_at);
|
||||
});
|
||||
|
||||
taskListEl.innerHTML = sortedTasks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue