If app is not found while app view is visible, go back

This commit is contained in:
Johannes Zellner
2019-10-01 20:04:28 +02:00
parent cfdb7b32fc
commit c8f50fc117

View File

@@ -959,6 +959,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
callback = callback || function () {};
Client.getApp($scope.app.id, function (error, app) {
if (error && error.statusCode === 404) return $location.path('/apps');
if (error) return callback(error);
// Immediately move to debug view on error