This commit is contained in:
Ishaan Jaffer
2025-12-12 17:10:36 -08:00
parent 2027ee7f85
commit 17ce970d99
@@ -295,7 +295,13 @@ export const getAgentCreateMetadata = async (): Promise<AgentCreateInfo[]> => {
}
const jsonData: AgentCreateInfo[] = await response.json();
return jsonData;
// Transform logo_url paths to be compatible with static UI
// JSON uses "/assets/logos/..." but static UI needs "../ui/assets/logos/..."
return jsonData.map(agent => ({
...agent,
logo_url: agent.logo_url?.replace(/^\/assets\/logos\//, "../ui/assets/logos/") || null,
}));
};
// Global variable for the header name