Apply suggestions from code review of branch gallery-ui-transition

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2026-05-11 16:33:29 +00:00 committed by Julian Stirling
parent ee8e09a9e1
commit 2e051f6d30

View file

@ -176,7 +176,7 @@ export default {
async refreshGallery() {
try {
let all_items = await this.readThingProperty("gallery", "list_data");
// if all_items is not or the number of items in all_items is zero then
// if all_items is "falsey" or the number of items in all_items is zero then
// all_items is equal to empty list.
// stop refresh gallery as all_items is empty list.
if (!all_items || all_items?.length === 0) {