Redirect back to app grid if app does not exist

This commit is contained in:
Johannes Zellner
2019-09-13 11:20:16 +02:00
parent 62fb0acb3c
commit 7a2a5d3846

View File

@@ -502,6 +502,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
Client.onReady(function () {
Client.getApp(appId, function (error, app) {
if (error && error.statusCode === 404) return $location.path('/apps');
if (error) return Client.error(error);
$scope.app = app;