v2.1.6 Distro repair

This commit is contained in:
Robert Strouse 2023-09-17 09:48:59 -07:00
parent 4ad2cf7567
commit 3590f0d124
3 changed files with 6 additions and 6 deletions

View file

@ -1943,7 +1943,7 @@ class Somfy {
// First get the optiongroup for the shades.
let optGroup = document.getElementById('optgrpVRShades');
if (typeof shades === 'undefined' || shades.length === 0) {
if (typeof optGroup !== 'undefined') optGroup.remove();
if (optGroup && typeof optGroup !== 'undefined') optGroup.remove();
}
else {
if (typeof optGroup === 'undefined' || !optGroup) {
@ -2204,7 +2204,7 @@ class Somfy {
// First get the optiongroup for the shades.
let optGroup = document.getElementById('optgrpVRGroups');
if (typeof groups === 'undefined' || groups.length === 0) {
if (typeof optGroup !== 'undefined') optGroup.remove();
if (optGroup && typeof optGroup !== 'undefined') optGroup.remove();
}
else {
if (typeof optGroup === 'undefined' || !optGroup) {