fix(ui): don't update last/num visited if object is nonexistent

This commit is contained in:
Tomáš Mládek 2023-01-01 16:25:40 +01:00
parent de688581ee
commit be869b1db0

View file

@ -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,