Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop): r7-l1 type the denied child cache updater

Josué502b37be70fc
diff --git a/desktop-app/ui/src/gfs/deniedChildren.ts b/desktop-app/ui/src/gfs/deniedChildren.ts
index 33ff3e80c..7dc47b957 100644
--- a/desktop-app/ui/src/gfs/deniedChildren.ts
+++ b/desktop-app/ui/src/gfs/deniedChildren.ts
@@ -16,7 +16,7 @@ export function purgeDeniedGfsChildren(
// A failed TanStack refetch retains its last successful data by design. For
// a definitive denial, replace only cached child rows; later invalidation can
// still refetch the same key if access is granted again.
- queryClient.setQueryData<unknown>(queryKey, current => {
+ queryClient.setQueryData<unknown>(queryKey, (current: unknown) => {
if (!current || typeof current !== 'object' || !('pages' in current)) return current
const pages = (current as { pages?: unknown }).pages
if (!Array.isArray(pages)) return current