go back to app grid if app is gone

This commit is contained in:
Johannes Zellner
2025-03-31 14:42:10 +02:00
parent cbfe19aebf
commit e3b81d0b36

View File

@@ -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);
}