Skip to content

Commit b98f747

Browse files
authored
Merge pull request #32 from XpressAI/fahreza/blank-page-fix
🐛 Fix blank page on client-side navigation to agent profile
2 parents f75d830 + 956bd13 commit b98f747

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/routes/agents/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
let {data} = $props();
88
let {AgentConfig, DebugTrace} = $derived(data);
9-
let {debugLog} = $derived($DebugTrace.data)
9+
let debugLog = $derived($DebugTrace?.data?.debugLog);
1010
1111
let debugClear = new ClearDebugLogStore();
1212
async function clearLog() {
@@ -21,7 +21,7 @@
2121

2222
<PageHeader title={page.params.id} />
2323
<div class="flex h-full w-full flex-col pr-4 pl-4 overflow-auto">
24-
<EventSequenceRenderer events={debugLog.events} onClear={clearLog}/>
24+
<EventSequenceRenderer events={debugLog?.events ?? []} onClear={() => { clearLog() }}/>
2525
</div>
2626

2727

0 commit comments

Comments
 (0)