From 4d85b521d815fb105b8a2ff97b291c7e09d8dbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 29 Jul 2023 12:39:23 +0200 Subject: [PATCH] fix: minor entity not yet loaded bug --- webui/src/components/Inspect.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/components/Inspect.svelte b/webui/src/components/Inspect.svelte index e3ea2b2..bf56457 100644 --- a/webui/src/components/Inspect.svelte +++ b/webui/src/components/Inspect.svelte @@ -70,7 +70,7 @@ const typeAddresses: string[] = [ await api.getAddress(entityInfo.t), - ...$entity.attr[ATTR_IN].map((e) => e.value.c as string), + ...($entity?.attr[ATTR_IN] || []).map((e) => e.value.c as string), ]; const typeAddressesIn = typeAddresses.map((addr) => `@${addr}`).join(" ");