From: Matthias Schmidt Date: Fri, 18 Dec 2020 16:28:29 +0000 (+0100) Subject: Recompile `Form/Builder/Manager` JS file from TS file X-Git-Tag: 5.4.0_Alpha_1~526^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b52ad20b0ce38984476b9a52287ff54071a58892;p=GitHub%2FWoltLab%2FWCF.git Recompile `Form/Builder/Manager` JS file from TS file --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Manager.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Manager.js index a120e7d1cb..a7b1390962 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Manager.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Manager.js @@ -26,14 +26,14 @@ define(["require", "exports", "tslib", "../../Core", "../../Event/Handler", "./F throw new Error("Unknown form with id '" + formId + "'."); } const promises = []; - _fields.get(formId).forEach(function (field) { + _fields.get(formId).forEach((field) => { const fieldData = field.getData(); if (!(fieldData instanceof Promise)) { throw new TypeError("Data for field with id '" + field.getId() + "' is no promise."); } promises.push(fieldData); }); - return Promise.all(promises).then(function (promiseData) { + return Promise.all(promises).then((promiseData) => { return promiseData.reduce((carry, current) => Core.extend(carry, current), {}); }); }