mirror of https://github.com/portainer/portainer
				
				
				
			prevent exception when showing stats on windows container (#5890)
Signed-off-by: Sven Dowideit <sven.dowideit@portainer.io>pull/5924/head
							parent
							
								
									3cde10bcac
								
							
						
					
					
						commit
						5eced421d5
					
				| 
						 | 
				
			
			@ -100,7 +100,7 @@ export function ContainerStatsViewModel(data) {
 | 
			
		|||
    }
 | 
			
		||||
  }
 | 
			
		||||
  this.Networks = _.values(data.networks);
 | 
			
		||||
  if (data.blkio_stats !== undefined) {
 | 
			
		||||
  if (data.blkio_stats !== undefined && data.blkio_stats.io_service_bytes_recursive !== null) {
 | 
			
		||||
    //TODO: take care of multiple block devices
 | 
			
		||||
    var readData = data.blkio_stats.io_service_bytes_recursive.find((d) => d.op === 'Read');
 | 
			
		||||
    if (readData === undefined) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue