8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97bcd44 commit 34268e6Copy full SHA for 34268e6
site/src/components/Timeline/Timeline.tsx
@@ -12,8 +12,7 @@ const groupByDate = <TData,>(
12
items.forEach((item) => {
13
const dateKey = getDate(item).toDateString()
14
15
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- Is not a guarantee a value is defined when access it dynamically
16
- if (itemsByDate[dateKey]) {
+ if (dateKey in itemsByDate) {
17
itemsByDate[dateKey].push(item)
18
} else {
19
itemsByDate[dateKey] = [item]
0 commit comments