Prevent eventlog filter from crashing

This commit is contained in:
Johannes Zellner
2020-03-04 15:07:35 -08:00
parent 08a6ad8bd3
commit 5695d555e5

View File

@@ -245,15 +245,19 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
case ACTION_APP_LOGIN:
var app = Client.getCachedAppSync(data.appId);
if (!app) return '';
return 'App ' + app.fqdn + ' logged in';
case ACTION_APP_OOM:
if (!data.app) return '';
return data.app.manifest.title + ' ran out of memory';
case ACTION_APP_DOWN:
if (!data.app) return '';
return data.app.manifest.title + ' is down';
case ACTION_APP_UP:
if (!data.app) return '';
return data.app.manifest.title + ' is back online';
case ACTION_BACKUP_START: