Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(backups): app picker read the wrong key off the /apps response

Juan Denisf442fc148ad9
diff --git a/frontend/src/pages/Backups.jsx b/frontend/src/pages/Backups.jsx
index 6cb2fcf1..e1f86e1f 100644
--- a/frontend/src/pages/Backups.jsx
+++ b/frontend/src/pages/Backups.jsx
@@ -123,7 +123,10 @@ const Backups = () => {
setStats(statsRes);
setSchedules(schedulesRes.schedules || []);
setConfig(configRes);
- setApps(appsRes.applications || []);
+ // GET /apps responds { apps: [...] } — reading `.applications` here
+ // silently produced [] on every load, so the app picker in the
+ // backup dialogs was permanently empty.
+ setApps(appsRes.apps || []);
setCostSummary(costRes || null);
if (storageRes) {