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 }) => {
3232 . flatMap ( ( a ) => a ?. apps )
3333 . filter ( ( a ) => ! ! a && a . slug !== AI_APP_CHAT_SLUG ) ;
3434
35+ const embeddedApps = apps . filter ( ( app ) => ! app . external ) ;
36+ const externalApps = apps . filter ( ( app ) => app . external ) ;
37+
3538 const [ activeAppId , setActiveAppId ] = useState < string > ( ( ) => {
36- const appId = apps [ 0 ] ?. id ;
39+ const appId = embeddedApps [ 0 ] ?. id ;
3740 if ( ! appId ) {
3841 throw new Error ( "No apps found in task" ) ;
3942 }
@@ -52,9 +55,6 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
5255 throw new Error ( `Agent for app ${ activeAppId } not found in task workspace` ) ;
5356 }
5457
55- const embeddedApps = apps . filter ( ( app ) => ! app . external ) ;
56- const externalApps = apps . filter ( ( app ) => app . external ) ;
57-
5858 return (
5959 < main className = "flex-1 flex flex-col" >
6060 < 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