mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Fix throwing when no source maps on calling forEach of null
				
					
				
			We need here to show frames even if all came from node_modules
This commit is contained in:
		
							parent
							
								
									801ae0f15e
								
							
						
					
					
						commit
						bc3234253c
					
				| 
						 | 
				
			
			@ -29,6 +29,7 @@ function getStackFrames(
 | 
			
		|||
    enhancedFramesPromise = map(parsedFrames, contextSize);
 | 
			
		||||
  }
 | 
			
		||||
  return enhancedFramesPromise.then(enhancedFrames => {
 | 
			
		||||
    /*
 | 
			
		||||
    if (
 | 
			
		||||
      enhancedFrames
 | 
			
		||||
        .map(f => f._originalFileName)
 | 
			
		||||
| 
						 | 
				
			
			@ -36,6 +37,7 @@ function getStackFrames(
 | 
			
		|||
    ) {
 | 
			
		||||
      return null;
 | 
			
		||||
    }
 | 
			
		||||
    */
 | 
			
		||||
    return enhancedFrames.filter(
 | 
			
		||||
      ({ functionName }) =>
 | 
			
		||||
        functionName == null ||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user