Skip to content

Commit 5940d19

Browse files
fix: wrap getProviders in async lambda for React Query queryFn
1 parent e6ff873 commit 5940d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/settings/MemoryPluginConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function MemoryPluginConfig({ memoryPluginEnabled, onToggle }: MemoryPlug
4747

4848
const { data: providersData } = useQuery({
4949
queryKey: ['providers-for-execution-model'],
50-
queryFn: getProviders,
50+
queryFn: async () => getProviders(),
5151
staleTime: 60000,
5252
enabled: memoryPluginEnabled && expanded,
5353
})

0 commit comments

Comments
 (0)