Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Name the instances snapshot's type for the check

milind-sonif7bf6de167f1
diff --git a/src/state/store.tsx b/src/state/store.tsx
index 33ed80cb31..0afd368872 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -2962,7 +2962,7 @@ export function StoreProvider({ children }: { children: ReactNode }) {
{
key: "instances",
request: async () => {
- const answer = await unlessRefused<{ instances: InstanceInfo[] } | null>("/api/instances", async () => snapshotArrays(await api("/api/instances"), "instances"), null);
+ const answer = await unlessRefused<{ instances: InstanceInfo[] } | null>("/api/instances", async () => snapshotArrays<{ instances: InstanceInfo[] }>(await api("/api/instances"), "instances"), null);
return () => { if (answer) rawDispatch({ type: "instances", instances: answer.instances }); };
},
},