Skip to content

Commit 6f4ebba

Browse files
authored
config: fix missing zoneId when user setting zoneLabel. (#851)
This issue previously prevented the Config page from correctly showing the “Edit Timeline” interface when zoneLabel was defined in a user JS file, due to a missing zoneId. This change fixes that. before: <img width="996" height="290" alt="image" src="https://github.com/user-attachments/assets/73e1678e-7ae3-4750-a4b3-d79f58cf64d7" /> after: <img width="1001" height="470" alt="image" src="https://github.com/user-attachments/assets/a9acf8b9-8d5e-4ae5-ba26-1bb5471490e3" />
1 parent a7185f3 commit 6f4ebba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ui/config/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,9 @@ export class CactbotConfigurator {
10791079
if (triggerSet.zoneLabel) {
10801080
zoneLabel = triggerSet.zoneLabel;
10811081
title = this.translate(zoneLabel);
1082+
if (typeof triggerSet.zoneId === 'number') {
1083+
zoneId = triggerSet.zoneId;
1084+
}
10821085
} else if (typeof triggerSet.zoneId === 'number') {
10831086
zoneId = triggerSet.zoneId;
10841087
// Use the translatable zone info name, if possible.

0 commit comments

Comments
 (0)