Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34268e6

Browse files
authored
refactor: remove eslint-disable (#4817)
1 parent 97bcd44 commit 34268e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/src/components/Timeline/Timeline.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const groupByDate = <TData,>(
1212
items.forEach((item) => {
1313
const dateKey = getDate(item).toDateString()
1414

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]) {
15+
if (dateKey in itemsByDate) {
1716
itemsByDate[dateKey].push(item)
1817
} else {
1918
itemsByDate[dateKey] = [item]

0 commit comments

Comments
 (0)