[web] Lint source code

This commit is contained in:
Alain Nussbaumer
2024-04-23 22:02:18 +02:00
parent 7d7d38b946
commit b20bdda8e9
3 changed files with 13 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ const timeIndex = (string) => {
return times.find((item) => isNaN(diff) || diff < item.difference)?.text(date)
}
const createIndexer = ({ field, type = undefined } = {}) => {
const createIndexer = ({ field, type } = {}) => {
switch (type) {
case String:
return (item) => characterIndex(item[field])