Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc339066

Browse files
authored
chore: select the first embedded app on tasks page (#18260)
The first app might be an external app (shown in the dropdown), and weactually want to select the first embedded app (which are in tabs).
1 parent0428c5e commitc339066

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎site/src/pages/TaskPage/TaskApps.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
constembeddedApps=apps.filter((app)=>!app.external);
36+
constexternalApps=apps.filter((app)=>app.external);
37+
3538
const[activeAppId,setActiveAppId]=useState<string>(()=>{
36-
constappId=apps[0]?.id;
39+
constappId=embeddedApps[0]?.id;
3740
if(!appId){
3841
thrownewError("No apps found in task");
3942
}
@@ -52,9 +55,6 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
5255
thrownewError(`Agent for app${activeAppId} not found in task workspace`);
5356
}
5457

55-
constembeddedApps=apps.filter((app)=>!app.external);
56-
constexternalApps=apps.filter((app)=>app.external);
57-
5858
return(
5959
<mainclassName="flex-1 flex flex-col">
6060
<divclassName="border-0 border-b border-border border-solid w-full p-1 flex gap-2">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp