diff --git a/apps/ui/src/routes/applications/[id]/logs/index.svelte b/apps/ui/src/routes/applications/[id]/logs/index.svelte index 93c7c4bca..9b2f86a44 100644 --- a/apps/ui/src/routes/applications/[id]/logs/index.svelte +++ b/apps/ui/src/routes/applications/[id]/logs/index.svelte @@ -5,7 +5,7 @@ import { errorNotification } from '$lib/common'; import LoadingLogs from '$lib/components/LoadingLogs.svelte'; import { onMount, onDestroy } from 'svelte'; -import Tooltip from '$lib/components/Tooltip.svelte'; + import Tooltip from '$lib/components/Tooltip.svelte'; let application: any = {}; let logsLoading = false; diff --git a/apps/ui/src/routes/databases/[id]/logs/index.svelte b/apps/ui/src/routes/databases/[id]/logs/index.svelte index 7b63a6362..b47cd6ad3 100644 --- a/apps/ui/src/routes/databases/[id]/logs/index.svelte +++ b/apps/ui/src/routes/databases/[id]/logs/index.svelte @@ -18,9 +18,13 @@ let logsEl: any; let position = 0; let loadingLogs = false; - let database: any = {}; + let database = { + name: null + }; onMount(async () => { + const response = await get(`/databases/${id}`); + database = response.database; const { logs: firstLogs } = await get(`/databases/${id}/logs`); logs = firstLogs; loadAllLogs(); @@ -95,29 +99,6 @@ {database.name} - - {#if database.fqdn} - - - - - - - {/if}
{#if logs.length === 0}