fix(launcher): guard health device metadata
This commit is contained in:
@@ -146,19 +146,19 @@ function get_usage_color(pct: number) {
|
||||
<div class="flex justify-between">
|
||||
<span>Hostname:</span>
|
||||
<span class="font-mono"
|
||||
>{$ae_loc.native_device.info_hostname || '...'}</span>
|
||||
>{$ae_loc.native_device?.info_hostname || '...'}</span>
|
||||
</div>
|
||||
<div class="flex justify-between gap-4">
|
||||
<span>IP Addresses:</span>
|
||||
<span class="truncate font-mono"
|
||||
>{$ae_loc.native_device.info_ip_list || '...'}</span>
|
||||
>{$ae_loc.native_device?.info_ip_list || '...'}</span>
|
||||
</div>
|
||||
<div class="mt-2 opacity-40">
|
||||
<span class="text-[8px] font-bold uppercase"
|
||||
>Raw Device JSON</span>
|
||||
<pre
|
||||
class="mt-1 max-h-32 overflow-y-auto rounded bg-black/20 p-1 text-[7px]">
|
||||
{JSON.stringify($ae_loc.native_device, null, 2)}
|
||||
{JSON.stringify($ae_loc.native_device ?? {}, null, 2)}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user