From 22fdf00dd31219ad59094d2f11f4cb71534eef5e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 8 Dec 2020 18:35:22 +0100 Subject: [PATCH] Fix eslint issue in `Form/Builder/Dialog` --- .../install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js | 2 +- .../install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); } /** -- 2.20.1