Make delete app better handled & revamp error toast (#422)

Fixes #395 
Fixes #270 
Fixes #268
This commit is contained in:
Will Chen
2025-06-16 23:36:43 -07:00
committed by GitHub
parent df38fb0f80
commit 2fc33d04c1
6 changed files with 147 additions and 34 deletions

View File

@@ -22,7 +22,8 @@ export function registerVersionHandlers() {
});
if (!app) {
throw new Error("App not found");
// The app might have just been deleted, so we return an empty array.
return [];
}
const appPath = getDyadAppPath(app.path);