mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
v2.1.6 Distro repair
This commit is contained in:
parent
4ad2cf7567
commit
3590f0d124
3 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue