File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
pages/browser/components/key-list Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ const KeyList = forwardRef((props: Props, ref) => {
99
99
useEffect ( ( ) => {
100
100
itemsRef . current = [ ...keysState . keys ]
101
101
if ( itemsRef . current . length === 0 ) {
102
+ rerender ( { } )
102
103
return
103
104
}
104
105
@@ -168,6 +169,7 @@ const KeyList = forwardRef((props: Props, ref) => {
168
169
const newItems = bufferFormatRows ( startIndex , lastIndex )
169
170
170
171
getMetadata ( startIndex , lastIndex , newItems )
172
+ rerender ( { } )
171
173
} , 100 )
172
174
173
175
const bufferFormatRows = ( startIndex : number , lastIndex : number ) : GetKeyInfoResponse [ ] => {
@@ -199,7 +201,8 @@ const KeyList = forwardRef((props: Props, ref) => {
199
201
lastIndex,
200
202
loadedItems,
201
203
isFirstEmpty : ! isSomeNotUndefined ( itemsInit [ 0 ] ) ,
202
- } )
204
+ } ) ,
205
+ ( ) => { rerender ( { } ) }
203
206
) )
204
207
}
205
208
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export const bufferFormatRangeItems = (
4
4
const newItems = [ ]
5
5
if ( lastIndex >= startIndex ) {
6
6
for ( let index = startIndex ; index <= lastIndex ; index ++ ) {
7
- if ( ! items [ index ] ) return [ startIndex , newItems ]
7
+ if ( ! items [ index ] ) return newItems
8
8
newItems . push ( formatItem ( items [ index ] ) )
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments