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">
|
<div class="flex justify-between">
|
||||||
<span>Hostname:</span>
|
<span>Hostname:</span>
|
||||||
<span class="font-mono"
|
<span class="font-mono"
|
||||||
>{$ae_loc.native_device.info_hostname || '...'}</span>
|
>{$ae_loc.native_device?.info_hostname || '...'}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between gap-4">
|
<div class="flex justify-between gap-4">
|
||||||
<span>IP Addresses:</span>
|
<span>IP Addresses:</span>
|
||||||
<span class="truncate font-mono"
|
<span class="truncate font-mono"
|
||||||
>{$ae_loc.native_device.info_ip_list || '...'}</span>
|
>{$ae_loc.native_device?.info_ip_list || '...'}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 opacity-40">
|
<div class="mt-2 opacity-40">
|
||||||
<span class="text-[8px] font-bold uppercase"
|
<span class="text-[8px] font-bold uppercase"
|
||||||
>Raw Device JSON</span>
|
>Raw Device JSON</span>
|
||||||
<pre
|
<pre
|
||||||
class="mt-1 max-h-32 overflow-y-auto rounded bg-black/20 p-1 text-[7px]">
|
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>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user