Fixed loopAll() async errors

This commit is contained in:
DJj123dj
2024-10-03 20:46:01 +02:00
parent 7c76be8473
commit 56e1fb3939
14 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const loadAllPanels = async () => {
//update panels on config reload
panelConfig.onReload(async () => {
//clear previous panels
openticket.panels.forEach((data,id) => {openticket.panels.remove(id)})
await openticket.panels.loopAll((data,id) => {openticket.panels.remove(id)})
//add new panels
panelConfig.data.forEach((panel) => {