From 7c76be84730fce16051b163c9731ef90c3b437a3 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:16:42 +0200 Subject: [PATCH] Fixed suffix register error on config reload --- README.md | 2 -- src/data/openticket/optionLoader.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d8cf541..19c0c02 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/src/data/openticket/optionLoader.ts b/src/data/openticket/optionLoader.ts index 51ee538..83de4cc 100644 --- a/src/data/openticket/optionLoader.ts +++ b/src/data/openticket/optionLoader.ts @@ -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) => {