From: Matthias Schmidt Date: Tue, 8 Dec 2020 17:35:22 +0000 (+0100) Subject: Fix eslint issue in `Form/Builder/Dialog` X-Git-Tag: 5.4.0_Alpha_1~526^2~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22fdf00dd31219ad59094d2f11f4cb71534eef5e;p=GitHub%2FWoltLab%2FWCF.git Fix eslint issue in `Form/Builder/Dialog` --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js index 7e89def384..c91d29e30e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js @@ -100,7 +100,7 @@ define(["require", "exports", "tslib", "../../Core", "../../Ui/Dialog", "../../A }; } _dialogSubmit() { - this.getData().then((formData) => this._submitForm(formData)); + void this.getData().then((formData) => this._submitForm(formData)); } /** * Opens the form dialog with the given form content. diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts index f7664674a2..50a292df5c 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts @@ -140,7 +140,7 @@ class FormBuilderDialog implements AjaxCallbackObject, DialogCallbackObject { } _dialogSubmit(): void { - this.getData().then((formData: FormBuilderData) => this._submitForm(formData)); + void this.getData().then((formData: FormBuilderData) => this._submitForm(formData)); } /**