Skip to content

Commit

Permalink
Prevent creating same elements in manager settings UI (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grommash9 authored Jan 18, 2024
1 parent 9b9e216 commit 92848cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 0.0.1 Unreleased
- [PR-161] Prevent creating same elements in manager settings UI
- [PR-154] Manager endpoint and UI logic for changing password
- Bot file system refactoring
- New bot routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ function cleanUpSettings() {
button.style.backgroundColor = 'rgb(255, 255, 255)';
}
});
const settingContainerContent = document.getElementById(
'settings-content-object'
) as HTMLDivElement;

if (settingContent) {
settingContent.innerHTML = '';
if (settingContainerContent) {
settingContainerContent.innerHTML = '';
}
}

0 comments on commit 92848cc

Please sign in to comment.