fix mqtt capture isValidState and capture panel

This commit is contained in:
dieriba
2025-05-08 12:14:19 +02:00
committed by GitHub
parent f94443794b
commit ecb935e89f
2 changed files with 11 additions and 10 deletions
@@ -83,16 +83,17 @@
}))
}
}, 2000)
page = Math.ceil(items.length / perPage)
hasMore = items.length === perPage * page
if (hasMore) {
const potentialNewItems = await loadInputs(page + 1, perPage)
hasMore = potentialNewItems.length > 0
if (items) {
page = Math.ceil(items.length / perPage)
hasMore = items.length === perPage * page
if (hasMore) {
const potentialNewItems = await loadInputs(page + 1, perPage)
hasMore = potentialNewItems.length > 0
}
initLoad = true
isEmpty = items.length === 0
length = items.length
}
initLoad = true
isEmpty = items.length === 0
length = items.length
} catch (err) {
console.error(err)
if (hasAlreadyFailed) return
@@ -144,7 +144,7 @@
</div>
<input
type="text"
bind:value={v.topic}
bind:value={subscribe_topics[i].topic}
disabled={!can_write}
placeholder="topic"
autocomplete="off"