chore: remove redundant log
This commit is contained in:
parent
c4fb0525a9
commit
6419e9fffd
1 changed files with 0 additions and 8 deletions
|
|
@ -39,15 +39,7 @@ export default class EntriesService {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sortByDate = (entries, fieldName = "last_modified") => {
|
_sortByDate = (entries, fieldName = "last_modified") => {
|
||||||
console.log(
|
|
||||||
"Before sort:",
|
|
||||||
entries.slice(0, 2).map((e) => e.last_modified),
|
|
||||||
)
|
|
||||||
const sorted = entries.sort((a, b) => new Date(b[fieldName]) - new Date(a[fieldName]))
|
const sorted = entries.sort((a, b) => new Date(b[fieldName]) - new Date(a[fieldName]))
|
||||||
console.log(
|
|
||||||
"After sort:",
|
|
||||||
sorted.slice(0, 2).map((e) => e.last_modified),
|
|
||||||
)
|
|
||||||
return sorted
|
return sorted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue