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

feat/type-attributes
Tomáš Mládek 2023-01-01 16:25:40 +01:00
parent de688581ee
commit be869b1db0
1 changed files with 1 additions and 1 deletions

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,