Fix eslint issue in `Form/Builder/Dialog`
authorMatthias Schmidt <gravatronics@live.com>
Tue, 8 Dec 2020 17:35:22 +0000 (18:35 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 15 Dec 2020 17:23:04 +0000 (18:23 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Dialog.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts

index 7e89def38442ca4edbf163ada9a0b62ebcac67e9..c91d29e30e5bff175d29eff363a5189453df32d3 100644 (file)
@@ -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.
index f7664674a2ce4a81b548dc3a89079649966be814..50a292df5c7847c17fde10a20202f3c15aa6f338 100644 (file)
@@ -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));
   }
 
   /**