Apply suggestions from code review of branch gallery-ui-transition
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
parent
ee8e09a9e1
commit
2e051f6d30
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ export default {
|
||||||
async refreshGallery() {
|
async refreshGallery() {
|
||||||
try {
|
try {
|
||||||
let all_items = await this.readThingProperty("gallery", "list_data");
|
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.
|
// all_items is equal to empty list.
|
||||||
// stop refresh gallery as all_items is empty list.
|
// stop refresh gallery as all_items is empty list.
|
||||||
if (!all_items || all_items?.length === 0) {
|
if (!all_items || all_items?.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue