go back to app grid if app is gone
This commit is contained in:
@@ -66,6 +66,7 @@ async function refresh() {
|
||||
const [error, result] = await appsModel.get(id.value);
|
||||
if (error) {
|
||||
if (error.status === 403) return window.location.hash = '/';
|
||||
else if (error.status === 404) return window.location.hash = '/apps';
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user