Fixed suffix register error on config reload

This commit is contained in:
DJj123dj
2024-10-03 20:16:42 +02:00
parent 7fa5dca7b3
commit 7c76be8473
2 changed files with 2 additions and 3 deletions
-2
View File
@@ -137,8 +137,6 @@ A big thanks to all our sponsors! Without them, it wouldn't be possible to creat
|🇸🇪 Swedish |iamnotmega |🟠 Temporary Outdated (beta) |
|🇻🇳 Vietnamese |iamnotmega |🟠 Temporary Outdated (beta) |
## ⭐️ Star History
Please help us grow by giving a star! It would help us a lot!
+2 -1
View File
@@ -18,8 +18,9 @@ export const loadAllOptions = async () => {
//update options on config reload
optionConfig.onReload(async () => {
//clear previous options
//clear previous options & suffixes
openticket.options.forEach((data,id) => {openticket.options.remove(id)})
openticket.options.suffix.forEach((data,id) => {openticket.options.suffix.remove(id)})
//add new options
optionConfig.data.forEach((option) => {