Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60595f3 commit 8a70b8dCopy full SHA for 8a70b8d
site/src/pages/TaskPage/TaskApps.tsx
@@ -33,9 +33,9 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
33
.filter((a) => !!a && a.slug !== AI_APP_CHAT_SLUG);
34
35
const [activeAppId, setActiveAppId] = useState<string>(() => {
36
- const appId = task.workspace.latest_app_status?.app_id;
+ const appId = apps[0]?.id;
37
if (!appId) {
38
- throw new Error("No active app found in task");
+ throw new Error("No apps found in task");
39
}
40
return appId;
41
});
0 commit comments