fix(admin): nav issues and blank screens fix
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user