mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 07:57:39 +03:00 
			
		
		
		
	Merge 8084678c91 into 10f112c0ee
				
					
				
			This commit is contained in:
		
						commit
						1a4949f4c5
					
				|  | @ -27,7 +27,7 @@ interface Entry { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function isRange(rangeOrEntry: Range | Entry): rangeOrEntry is Range { | function isRange(rangeOrEntry: Range | Entry): rangeOrEntry is Range { | ||||||
|   return (rangeOrEntry as Range).to !== undefined; |   return (rangeOrEntry as Range)?.to !== undefined; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function renderChildNodes( | function renderChildNodes( | ||||||
|  | @ -54,6 +54,10 @@ function renderChildNodes( | ||||||
|     from, |     from, | ||||||
|     to, |     to, | ||||||
|   ).forEach((entry) => { |   ).forEach((entry) => { | ||||||
|  |     // Don't process null/undefined entries, which can come from sparse arrays
 | ||||||
|  |     if(!entry) { | ||||||
|  |       return | ||||||
|  |     } | ||||||
|     if (isRange(entry)) { |     if (isRange(entry)) { | ||||||
|       childNodes.push( |       childNodes.push( | ||||||
|         <ItemRange |         <ItemRange | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user