diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index 3cdcace3..3938ea20 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -5382,7 +5382,7 @@ function HandleButtonEvent(words: any): void { setIfExists(words[2] + '.' + modesDP[mode], false); } } - GeneratePage(config.pages[pageId]); + GeneratePage(activePage); } else { let HVACMode = getState(words[2] + '.MODE').val; @@ -5412,7 +5412,7 @@ function HandleButtonEvent(words: any): void { } setIfExists(words[2] + '.' + 'MODE', HVACMode); - GeneratePage(config.pages[pageId]); + GeneratePage(activePage); } break; case 'mode-modus1': diff --git a/ioBroker/NsPanelTs_without_Examples.ts b/ioBroker/NsPanelTs_without_Examples.ts index f893d284..4c797bd8 100644 --- a/ioBroker/NsPanelTs_without_Examples.ts +++ b/ioBroker/NsPanelTs_without_Examples.ts @@ -4999,7 +4999,7 @@ function HandleButtonEvent(words: any): void { setIfExists(words[2] + '.' + modesDP[mode], false); } } - GeneratePage(config.pages[pageId]); + GeneratePage(activePage); } else { let HVACMode = getState(words[2] + '.MODE').val; @@ -5029,7 +5029,7 @@ function HandleButtonEvent(words: any): void { } setIfExists(words[2] + '.' + 'MODE', HVACMode); - GeneratePage(config.pages[pageId]); + GeneratePage(activePage); } break; case 'mode-modus1':