From 86761994dffe8bd5289fe471124312d7d70117bd Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 4 Oct 2025 10:37:29 +1000 Subject: [PATCH] need to check length of faces, not just it exists - it comes back as an empty array when no faces --- internal/js/view_support.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/js/view_support.js b/internal/js/view_support.js index 2c24a0a..2df2168 100644 --- a/internal/js/view_support.js +++ b/internal/js/view_support.js @@ -85,9 +85,8 @@ function DrawImg() else $('.figcaption').hide() - // if we have faces, the enable the toggles, otherwise disable them - // and reset model select too - if( document.viewing.file_details.faces ) + // if we have faces, the enable the toggles, otherwise disable them and reset model select too + if( document.viewing.file_details.faces.length ) { $('#faces').attr('disabled', false) $('#distance').attr('disabled', false)