From b52ad20b0ce38984476b9a52287ff54071a58892 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Dec 2020 17:28:29 +0100 Subject: [PATCH] Recompile `Form/Builder/Manager` JS file from TS file --- .../files/js/WoltLabSuite/Core/Form/Builder/Manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), {}); }); } -- 2.20.1