fix missing session ID (#178)

This commit is contained in:
Red J Adaya 2023-12-20 08:18:44 +08:00 committed by GitHub
parent 426f9546e5
commit 75d1a435ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,8 +392,8 @@ class SessionSettingsModal extends React.Component<{}, {}> {
constructor(props: any) {
super(props);
let sessionId = GlobalModel.sessionSettingsModal.get();
this.session = GlobalModel.getSessionById(sessionId);
this.sessionId = GlobalModel.sessionSettingsModal.get();
this.session = GlobalModel.getSessionById(this.sessionId);
if (this.session == null) {
return;
}