diff --git a/frontend/src/components/apps/AppsTable.tsx b/frontend/src/components/apps/AppsTable.tsx index b3404e415..f51ee1db3 100644 --- a/frontend/src/components/apps/AppsTable.tsx +++ b/frontend/src/components/apps/AppsTable.tsx @@ -49,8 +49,9 @@ const AppsDataGrid: FC { return data.map(app => { - const gptScripts = (app.config.helix?.assistants[0]?.gptscripts || []) - const apiTools = (app.config.helix?.assistants[0]?.tools || []).filter(t => t.tool_type == 'api') + const assistant = app.config.helix?.assistants?.[0] + const gptScripts = assistant?.gptscripts || [] + const apiTools = (assistant?.tools || []).filter(t => t.tool_type == 'api') const gptscriptsElem = gptScripts.length > 0 ? ( <>