fix issue with new bearer token input field for Igtimi wind import

This commit is contained in:
Axel Uhl committed 2025-10-08 11:46:29 +02:00
1 parent 608c88328f
commit fe3abc22dd
1 file changed
+3 -1
@@ -358,7 +358,9 @@ public class WindPanel extends FormPanel implements FilterablePanelProvider<Race
if (Window.confirm(warningMessage)) {
resultReport.setText(stringMessages.loading());
sailingServiceWrite.importWindFromIgtimi(new ArrayList<>(refreshableRaceSelectionModel.getSelectedSet()),
correctByDeclination.getValue(), optionalBearerTokenBox.getValue(), new AsyncCallback<Map<RegattaAndRaceIdentifier, Integer>>() {
correctByDeclination.getValue(),
Util.hasLength(optionalBearerTokenBox.getValue()) ? optionalBearerTokenBox.getValue().trim() : null,
new AsyncCallback<Map<RegattaAndRaceIdentifier, Integer>>() {
@Override
public void onFailure(Throwable caught) {
errorReporter.reportError(stringMessages.errorImportingIgtimiWind(caught.getMessage()));