Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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