From 7b0d10e8c262da46e6874f6b87f36be412a2f387 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 26 Aug 2025 10:58:13 +0200 Subject: [PATCH] ui/queries: remove annoying refetch interval, invalidate on change instead --- pkgs/clan-app/ui/src/routes/Clan/Clan.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-app/ui/src/routes/Clan/Clan.tsx b/pkgs/clan-app/ui/src/routes/Clan/Clan.tsx index 05ef9be74..10116caf8 100644 --- a/pkgs/clan-app/ui/src/routes/Clan/Clan.tsx +++ b/pkgs/clan-app/ui/src/routes/Clan/Clan.tsx @@ -314,11 +314,10 @@ const ClanSceneController = (props: RouteSectionProps) => { if (pos === null) { // Remove the machine entry if pos is null - delete s.sceneData[ctx.clanURI][machineId]; + Reflect.deleteProperty(s.sceneData[ctx.clanURI], machineId); - // Optional: cleanup empty clan entries if (Object.keys(s.sceneData[ctx.clanURI]).length === 0) { - delete s.sceneData[ctx.clanURI]; + Reflect.deleteProperty(s.sceneData, ctx.clanURI); } } else { // Set or update the machine position