From 8d3d3ba87523eed2229752b52968613be27857d7 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 3 Jan 2024 18:49:49 +0100 Subject: [PATCH] dashboard: fix crash on uninstalled app --- 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 ac9bc5738..c6aa8739a 100644 --- a/dashboard/src/views/system.js +++ b/dashboard/src/views/system.js @@ -96,8 +96,8 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati if (content.type === 'app') { content.app = Client.getInstalledAppsByAppId()[content.id]; - content.label = content.app.label || content.app.fqdn; if (!content.app) content.uninstalled = true; + 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;