()
| 22 | const [isDownloading, setIsDownloading] = useState(false); |
| 23 | |
| 24 | const fetchLogs = async () => { |
| 25 | const queryOpts = agentLogs(agent.id); |
| 26 | let logs = queryClient.getQueryData<WorkspaceAgentLog[]>( |
| 27 | queryOpts.queryKey, |
| 28 | ); |
| 29 | if (!logs) { |
| 30 | logs = await queryClient.fetchQuery(queryOpts); |
| 31 | } |
| 32 | return logs; |
| 33 | }; |
| 34 | |
| 35 | return ( |
| 36 | <Button |
no test coverage detected