upd
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user