From dc45df89d8e7bf449ffa19d14eb27761f1894071 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Tue, 29 Jun 2021 07:31:36 +0200 Subject: [PATCH] fix: [helpers:bootstrap] Correctly destructure passed array --- webroot/js/bootstrap-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/bootstrap-helper.js b/webroot/js/bootstrap-helper.js index 2d50a49..09e5719 100644 --- a/webroot/js/bootstrap-helper.js +++ b/webroot/js/bootstrap-helper.js @@ -180,7 +180,7 @@ class UIFactory { * @return {Promise} Promise object resolving to the ModalFactory object */ submissionReloaderModal(url, reloadUrl, $reloadedElement, $statusNode=null) { - const successCallback = function (data) { + const successCallback = function ([data, modalObject]) { UI.reload(reloadUrl, $reloadedElement, $statusNode) if (data.additionalData !== undefined && data.additionalData.displayOnSuccess !== undefined) { UI.modal({