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

Commit8a70b8d

Browse files
authored
chore: select the first workspace app to be active in tasks (#18256)
Same as#18239, but only thenecessary code
1 parent60595f3 commit8a70b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
3333
.filter((a)=>!!a&&a.slug!==AI_APP_CHAT_SLUG);
3434

3535
const[activeAppId,setActiveAppId]=useState<string>(()=>{
36-
constappId=task.workspace.latest_app_status?.app_id;
36+
constappId=apps[0]?.id;
3737
if(!appId){
38-
thrownewError("Noactive app found in task");
38+
thrownewError("Noapps found in task");
3939
}
4040
returnappId;
4141
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp