From a04d0979bf3cf1e16e2f6004bb3c8fb4b9634d26 Mon Sep 17 00:00:00 2001 From: scammo Date: Sun, 21 Apr 2024 04:35:40 +0200 Subject: [PATCH] fix error messages and display Overview --- frontend/src/views/orga/Overview.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/orga/Overview.vue b/frontend/src/views/orga/Overview.vue index 6d82c75..4fbfdad 100644 --- a/frontend/src/views/orga/Overview.vue +++ b/frontend/src/views/orga/Overview.vue @@ -4,8 +4,12 @@ import { client } from "../../lib/api"; const tracks = ref([]) const loadTracks = async () => { - const response = await client.get('tracks') - tracks.value = response.data + try { + const response = await client.get('tracks') + tracks.value = response.data + } catch (error) { + console.error(error) + } } loadTracks()