Bug fixes

This commit is contained in:
redphx
2024-12-05 17:18:47 +07:00
parent e1f8fcef41
commit 5b67c344de
3 changed files with 7 additions and 3 deletions

View File

@@ -1007,7 +1007,9 @@ export class SettingsDialog extends NavigationDialog {
$note,
multiLines: setting.multiLines,
});
$row.htmlFor = `bx_setting_${escapeCssSelector(pref!)}`;
if (pref) {
$row.htmlFor = `bx_setting_${escapeCssSelector(pref)}`;
}
$row.dataset.type = settingTabContent.group;
$tabContent.appendChild($row);