fix(rnetwork): check URL space slug not effectiveSpace for demo detection

effectiveSpace resolves to 'global' for rnetwork (global-scoped module),
so check the URL space param instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-15 16:49:55 -07:00
parent 33721819db
commit 48cbf22492
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ routes.get("/api/graph", async (c) => {
let isDemoData = false; let isDemoData = false;
// Demo members: always show in "demo" space, or when no CRM token // Demo members: always show in "demo" space, or when no CRM token
const useDemoMembers = !token || dataSpace === "demo"; const useDemoMembers = !token || space === "demo";
if (useDemoMembers) { if (useDemoMembers) {
isDemoData = true; isDemoData = true;