diff --git a/src/views/DataSessionsView.vue b/src/views/DataSessionsView.vue index 992170f..195ea00 100644 --- a/src/views/DataSessionsView.vue +++ b/src/views/DataSessionsView.vue @@ -16,12 +16,10 @@ const showDeleteDialog = ref(false) const dataSessionsUrl = configurationStore.datalabApiBaseUrl + 'datasessions/' onMounted(async () => { - // display users most recent session by keeping track with activeSessionId await loadSessions() + // if there is no active session set the first session default if (dataSessions.value.length > 0 && !userDataStore.activeSessionId) { userDataStore.activeSessionId = dataSessions.value[0].id - } else if (dataSessions.value.length === 0) { - console.error('no data sessions available to display') } }) @@ -54,7 +52,10 @@ function tabActive(index) {