From 92b6a7e33553e606fb7a48a1097d1c63658a9c4f Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 22 May 2024 11:39:19 +0200 Subject: [PATCH] dashboard: do not crash if sysinfo cache still contains removed volume info --- dashboard/src/views/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/views/system.js b/dashboard/src/views/system.js index c6aa8739a..f5356b8fd 100644 --- a/dashboard/src/views/system.js +++ b/dashboard/src/views/system.js @@ -100,7 +100,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati else content.label = content.app.label || content.app.fqdn; } else if (content.type === 'volume') { content.volume = $scope.volumesById[content.id]; - content.label = content.volume.name; + content.label = content.volume ? content.volume.name : 'Removed volume'; } // ensure a label for ui