This commit is contained in:
2025-06-17 17:41:04 +05:00
parent 59c3080332
commit ccfa6ea260
6 changed files with 27 additions and 36 deletions
+4 -2
View File
@@ -42,7 +42,9 @@ export default function CreateSessionModal({ targetServerId }: Props) {
useEffect(() => {
setSelectedApp(
selectedServer?.sessions?.[0]?.app || selectedServer?.apps?.[0] || null
selectedServer?.sessions?.[0]?.app ||
selectedServer?.apps?.[0].app ||
null
);
}, [selectedServer]);
@@ -204,7 +206,7 @@ export default function CreateSessionModal({ targetServerId }: Props) {
? selectedApp
: null
}
projects={selectedServer?.apps}
projects={selectedServer?.apps.map(({ app }) => app)}
selectedProject={selectedApp}
setSelectedProject={setSelectedApp}
/>