Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: resolve isNonPm2 TDZ error on Apps page

Adam Eivy86dd40f9d48f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 8cf6d933b5..10e8b40a6b 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -8,3 +8,7 @@
## Changed
- **CoS feature-ideas task** — Agents now implement the next unchecked PLAN.md item instead of inventing features. When user clarification is needed, agents create a `.plan-questions.md` marker and a `plan_question` notification linking to the Documents tab. Added `{appId}` template variable for prompt linking.
+
+## Fixed
+
+- **Apps page crash** — Fixed `Cannot access 'isNonPm2' before initialization` error caused by self-referencing variable declaration in Apps.jsx
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index a057b9b3e5..1210471bfb 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -195,7 +195,7 @@ export default function Apps() {
) : (
<div className="space-y-4">
{displayedApps.map(app => {
- const isNonPm2 = isNonPm2;
+ const isNonPm2 = NON_PM2_TYPES.has(app.type);
return (
<div
key={app.id}