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 -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) => {