Skip to content

Commit b505578

Browse files
committed
fix: format TasksPage.tsx with biome
1 parent 4908f30 commit b505578

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

site/src/pages/TasksPage/TasksPage.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,30 +329,32 @@ const TasksTable: FC<TasksTableProps> = ({ templates, filter }) => {
329329
tasks.map(({ workspace, prompt }) => {
330330
const templateDisplayName =
331331
workspace.template_display_name ?? workspace.template_name;
332-
332+
333333
// Get all apps from all agents, excluding the chat UI app
334334
const allApps = workspace.latest_build.resources
335335
.flatMap((r) => r.agents)
336336
.filter((a) => !!a)
337337
.flatMap((a) => a.apps)
338338
.filter((app) => app.slug !== AI_APP_CHAT_SLUG);
339-
339+
340340
// Use the first app in order instead of the most recently active app
341341
const focusedApp = allApps[0];
342-
342+
343343
// Find the agent that contains the focused app
344344
const agent = workspace.latest_build.resources
345345
.flatMap((r) => r.agents)
346346
.filter((a) => !!a)
347347
.find((a) => a.apps.some((app) => app.id === focusedApp?.id));
348-
348+
349349
// Create a status object for the focused app, or fall back to latest_app_status
350-
const status = focusedApp ? {
351-
...workspace.latest_app_status,
352-
app_id: focusedApp.id,
353-
agent_id: agent?.id || workspace.latest_app_status?.agent_id,
354-
} : workspace.latest_app_status;
355-
350+
const status = focusedApp
351+
? {
352+
...workspace.latest_app_status,
353+
app_id: focusedApp.id,
354+
agent_id: agent?.id || workspace.latest_app_status?.agent_id,
355+
}
356+
: workspace.latest_app_status;
357+
356358
const app = focusedApp;
357359

358360
return (

0 commit comments

Comments
 (0)