We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0428c5e commitc339066Copy full SHA for c339066
site/src/pages/TaskPage/TaskApps.tsx
@@ -32,8 +32,11 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
32
.flatMap((a)=>a?.apps)
33
.filter((a)=>!!a&&a.slug!==AI_APP_CHAT_SLUG);
34
35
+constembeddedApps=apps.filter((app)=>!app.external);
36
+constexternalApps=apps.filter((app)=>app.external);
37
+
38
const[activeAppId,setActiveAppId]=useState<string>(()=>{
-constappId=apps[0]?.id;
39
+constappId=embeddedApps[0]?.id;
40
if(!appId){
41
thrownewError("No apps found in task");
42
}
@@ -52,9 +55,6 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
52
55
thrownewError(`Agent for app${activeAppId} not found in task workspace`);
53
56
54
57
-constembeddedApps=apps.filter((app)=>!app.external);
-constexternalApps=apps.filter((app)=>app.external);
-
58
return(
59
<mainclassName="flex-1 flex flex-col">
60
<divclassName="border-0 border-b border-border border-solid w-full p-1 flex gap-2">