From 905003705f22e300f62a18873baeb23a79f2ffa2 Mon Sep 17 00:00:00 2001 From: Juliet Date: Sun, 23 Aug 2026 00:31:07 +0200 Subject: [PATCH] fix tabs loading in spaces --- src/views/spaces/space.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/spaces/space.tsx b/src/views/spaces/space.tsx index b7e965e..feb4232 100644 --- a/src/views/spaces/space.tsx +++ b/src/views/spaces/space.tsx @@ -96,15 +96,16 @@ const SpaceView = () => { }); createEffect(() => { + if (hidden()) return; + const agent = auth(); const spaceRef = space(); - const key = hidden() ? "" : `${agent.sub}\n${spaceRef}`; + const key = `${agent.sub}\n${spaceRef}`; if (key === simpleSpaceKey) return; simpleSpaceKey = key; simpleSpaceVersion += 1; setSimpleSpaceInfo(undefined); - if (!key) return; const version = simpleSpaceVersion; void getSimpleSpace(agent, spaceRef) -- 2.51.2