Skip to content

Commit fa2fdeb

Browse files
committed
missing data
1 parent eaeec10 commit fa2fdeb

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

vueadmin/src/panels/SessionApps.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@
4343
export default {
4444
name: 'ViewSessionApps',
4545
data() {
46+
let session = this.$store.state.session;
47+
let fullApps = session == null ? [] : session.fullApps;
4648
return {
47-
session: this.$store.state.session
49+
session,
50+
fullApps,
4851
}
4952
},
5053
props: [
@@ -66,6 +69,9 @@ import store from '@/store.js'
6669
6770
jt.updateSessionApps = function() {
6871
let session = store.state.session;
72+
if (session == null) {
73+
return;
74+
}
6975
session.fullApps = [];
7076
for (let i in session.apps) {
7177
let oldApp = session.apps[i];

vueadmin/src/panels/SessionParticipants.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ export default {
6767
name: 'ParticipantsTable',
6868
data() {
6969
let linkType = 'link';
70-
if (jt.settings.sessionShowFullLinks) {
70+
if (jt.settings != null && jt.settings.sessionShowFullLinks) {
7171
linkType = 'full link';
7272
}
7373
74+
let session = this.$store.state.session;
75+
let participants = session != null ? session.participants : [];
7476
return {
75-
session: this.$store.state.session,
76-
participants: this.$store.state.session.participants,
77+
session: session,
78+
participants: participants,
7779
storeFields: this.$store.state.allFields,
7880
fieldsToSkip: playerFieldsToSkip,
7981
fields: [

vueadmin/src/panels/SessionSettings.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ jt.setAllowAdminPlay = function(val) {
142142
// }
143143
144144
jt.updateAllowAdminPlay = function() {
145+
if (store.state.session == null) {
146+
return;
147+
}
145148
let val = store.state.session.allowAdminClientsToPlay;
146149
if (val) {
147150
$('#allowAdminPlayYes').addClass('btn-secondary');

0 commit comments

Comments
 (0)