From be869b1db0ec982fc38210fe56e6fdc49e6a35b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 1 Jan 2023 16:25:40 +0100 Subject: [PATCH] fix(ui): don't update last/num visited if object is nonexistent --- 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 963fed0..be219f2 100644 --- a/webui/src/components/Inspect.svelte +++ b/webui/src/components/Inspect.svelte @@ -203,7 +203,7 @@ } $: entity.subscribe(async (object) => { - if (object) { + if (object && object.listing.entries.length) { await putEntityAttribute(object.address, "LAST_VISITED", { t: "Number", c: new Date().getTime() / 1000,