fix(admin): nav issues and blank screens fix

This commit is contained in:
2026-02-26 16:20:59 -05:00
parent 10cb37c866
commit 34a73f0f94
8 changed files with 57 additions and 15 deletions

View File

@ -159,7 +159,8 @@ const form = ref({
onMounted(async () => {
try {
routes.value = await routesService.getAllRoutes()
const data = await routesService.getAllRoutes()
routes.value = data || []
} catch (e) {
console.error('Error loading routes', e)
}
@ -177,7 +178,8 @@ async function loadSchedules() {
isLoadingSchedules.value = true
try {
// Get all schedules including drafts (false for onlyPublished)
schedules.value = await schedulesService.getRouteSchedules(selectedRouteId.value, false)
const data = await schedulesService.getRouteSchedules(selectedRouteId.value, false)
schedules.value = data || []
} catch (e) {
console.error('Error loading schedules', e)
} finally {
@ -347,6 +349,11 @@ async function handleDelete(id: string) {
cursor: pointer;
}
.premium-select option {
background: var(--bg-primary, #1e1e2d);
color: var(--text-primary, #ffffff);
}
.actions-header {
display: flex;
justify-content: space-between;