diff --git a/frontend/main.ts b/frontend/main.ts index 5a7bc92..f393d48 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -426,7 +426,9 @@ function initNewChoice(select: HTMLInputElement) { return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; }, callbackOnInit: function (this: Choices) { - this._currentState.items.forEach(function (obj: any) { + const items = this.getValue(); // Get all selected items + const itemsArray = Array.isArray(items) ? items : [items]; + itemsArray.forEach((obj: any) => { if (boat_in_ottensheim && obj.customProperties) { if (obj.customProperties.is_racing) { const coxSelect = ( diff --git a/frontend/package.json b/frontend/package.json index 456fff4..09560f2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,7 @@ "autoprefixer": "^10.4.21", "postcss": "^8.5.6", "sass": "^1.93.2", - "tailwindcss": "^4.1.14", + "tailwindcss": "^3.4.18", "typescript": "^5.9.3", "vite": "^7.1.7", "vite-plugin-static-copy": "^3.1.3"