File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,11 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
32
32
. flatMap ( ( a ) => a ?. apps )
33
33
. filter ( ( a ) => ! ! a && a . slug !== AI_APP_CHAT_SLUG ) ;
34
34
35
+ const embeddedApps = apps . filter ( ( app ) => ! app . external ) ;
36
+ const externalApps = apps . filter ( ( app ) => app . external ) ;
37
+
35
38
const [ activeAppId , setActiveAppId ] = useState < string > ( ( ) => {
36
- const appId = apps [ 0 ] ?. id ;
39
+ const appId = embeddedApps [ 0 ] ?. id ;
37
40
if ( ! appId ) {
38
41
throw new Error ( "No apps found in task" ) ;
39
42
}
@@ -52,9 +55,6 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
52
55
throw new Error ( `Agent for app ${ activeAppId } not found in task workspace` ) ;
53
56
}
54
57
55
- const embeddedApps = apps . filter ( ( app ) => ! app . external ) ;
56
- const externalApps = apps . filter ( ( app ) => app . external ) ;
57
-
58
58
return (
59
59
< main className = "flex-1 flex flex-col" >
60
60
< div className = "border-0 border-b border-border border-solid w-full p-1 flex gap-2" >
You can’t perform that action at this time.
0 commit comments