Skip to content

Commit

Permalink
fix frontend for new api
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Jan 1, 2025
1 parent 3c6d5f8 commit 7401215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/query/use-active-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useActiveHost = () => {
const response = await openHands.get<{ hosts: string[] }>(
`/api/conversations/${conversationId}/web-hosts`,
);
return response.data;
return { hosts: Object.keys(response.data.hosts) };
},
enabled: !RUNTIME_INACTIVE_STATES.includes(curAgentState),
initialData: { hosts: [] },
Expand Down

0 comments on commit 7401215

Please sign in to comment.