{name}
diff --git a/web/pages/construct/dbgpts/index.tsx b/web/pages/construct/dbgpts/index.tsx
index 39cfd2c82..418c79fcd 100644
--- a/web/pages/construct/dbgpts/index.tsx
+++ b/web/pages/construct/dbgpts/index.tsx
@@ -127,12 +127,20 @@ function Agent() {
},
];
- const logoUrl = {
- workflow: '/pictures/flow.png',
- agents: '/pictures/agent.png',
- resources: '/pictures/database.png',
- apps: '/pictures/app.png',
- operators: '/pictures/knowledge.png',
+ const logoFn = (type: string) => {
+ switch(type) {
+ case 'workflow':
+ return '/pictures/flow.png';
+ case 'resources':
+ return '/pictures/database.png';
+ case 'apps':
+ return '/pictures/app.png';
+ case 'operators':
+ return '/pictures/knowledge.png';
+ case 'agents':
+ default:
+ return '/pictures/agent.png';
+ };
}
return (
@@ -196,7 +204,7 @@ function Agent() {
{agents.map((agent, index) => (
{
if (agent.storage_url) window.open(agent.storage_url, '_blank');
}}