diff --git a/src/js/index.js b/src/js/index.js index 63b2dccf8..38961f133 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -199,18 +199,21 @@ app.filter('installError', function () { app.filter('activeTask', function () { return function (app) { + if (!app) return false; return app.taskId !== null; }; }); app.filter('installSuccess', function () { return function (app) { + if (!app) return false; return app.installationState === ISTATES.INSTALLED; }; }); app.filter('appIsInstalledAndHealthy', function () { return function (app) { + if (!app) return false; return (app.installationState === ISTATES.INSTALLED && app.health === HSTATES.HEALTHY); }; });