We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f75d830 + 956bd13 commit b98f747Copy full SHA for b98f747
1 file changed
ui/src/routes/agents/[id]/+page.svelte
@@ -6,7 +6,7 @@
6
7
let {data} = $props();
8
let {AgentConfig, DebugTrace} = $derived(data);
9
- let {debugLog} = $derived($DebugTrace.data)
+ let debugLog = $derived($DebugTrace?.data?.debugLog);
10
11
let debugClear = new ClearDebugLogStore();
12
async function clearLog() {
@@ -21,7 +21,7 @@
21
22
<PageHeader title={page.params.id} />
23
<div class="flex h-full w-full flex-col pr-4 pl-4 overflow-auto">
24
- <EventSequenceRenderer events={debugLog.events} onClear={clearLog}/>
+ <EventSequenceRenderer events={debugLog?.events ?? []} onClear={() => { clearLog() }}/>
25
</div>
26
27
0 commit comments