File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
apps/renderer/src/modules/entry-column Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,6 @@ function EntryColumnImpl() {
64
64
65
65
const { entriesIds, isFetchingNextPage, groupedCounts } = entries
66
66
useSnapEntryIdList ( entriesIds )
67
- const prevEntriesIdsRef = useRef ( entriesIds )
68
-
69
- useEffect ( ( ) => {
70
- if ( entriesIds . length > 0 ) {
71
- prevEntriesIdsRef . current = entriesIds
72
- }
73
- } , [ entriesIds ] )
74
67
75
68
const {
76
69
entryId : activeEntryId ,
@@ -135,9 +128,6 @@ function EntryColumnImpl() {
135
128
}
136
129
} , [ shouldLoadArchivedEntries ] )
137
130
138
- const finalEntriesIds =
139
- hasNoEntries && ! isArchived ? prevEntriesIdsRef . current || entriesIds : entriesIds
140
-
141
131
const scrollRef = useRef < HTMLDivElement > ( null )
142
132
143
133
const handleScroll = useCallback (
@@ -195,7 +185,7 @@ function EntryColumnImpl() {
195
185
await entries . fetchNextPage ( )
196
186
}
197
187
} , [ entries ] ) ,
198
- data : finalEntriesIds ,
188
+ data : entriesIds ,
199
189
onScroll : handleScroll ,
200
190
itemContent : useTypeScriptHappyCallback (
201
191
( _ , entryId ) => {
You can’t perform that action at this time.
0 commit comments