diff --git a/frontend/main.ts b/frontend/main.ts index fc4a377..5a7bc92 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -425,8 +425,8 @@ function initNewChoice(select: HTMLInputElement) { maxItemText: (maxItemCount) => { return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; }, - callbackOnInit: function () { - this._currentState.items.forEach(function (obj) { + callbackOnInit: function (this: Choices) { + this._currentState.items.forEach(function (obj: any) { if (boat_in_ottensheim && obj.customProperties) { if (obj.customProperties.is_racing) { const coxSelect = (