Procházet zdrojové kódy

ignore: fix session activation after creation to ensure proper state management

Dax Raad před 4 měsíci
rodič
revize
18e549a474
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/desktop/src/pages/index.tsx

+ 1 - 1
packages/desktop/src/pages/index.tsx

@@ -167,7 +167,6 @@ export default function Page() {
       session = created.data ?? undefined
       session = created.data ?? undefined
     }
     }
     if (!session) return
     if (!session) return
-    local.session.setActive(session.id)
 
 
     interface SubmissionAttachment {
     interface SubmissionAttachment {
       path: string
       path: string
@@ -262,6 +261,7 @@ export default function Page() {
         ],
         ],
       },
       },
     })
     })
+    local.session.setActive(session.id)
   }
   }
 
 
   const handleNewSession = () => {
   const handleNewSession = () => {