prevent exception when showing stats on windows container (#5890)

Signed-off-by: Sven Dowideit <sven.dowideit@portainer.io>
pull/5924/head
Sven Dowideit 3 years ago committed by GitHub
parent 3cde10bcac
commit 5eced421d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save