From 8aa6ebbdbf58a5fb4dce23fb23e718a2e6fce39c Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Mon, 9 Sep 2024 17:42:56 +0200 Subject: [PATCH] fix: style packages can be saved without webhooks Refs: #193 --- .../resources/webapp/pdf-exporter-admin/js/style-packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/webapp/pdf-exporter-admin/js/style-packages.js b/src/main/resources/webapp/pdf-exporter-admin/js/style-packages.js index d4d8e10..b0e33a9 100644 --- a/src/main/resources/webapp/pdf-exporter-admin/js/style-packages.js +++ b/src/main/resources/webapp/pdf-exporter-admin/js/style-packages.js @@ -164,7 +164,7 @@ function saveStylePackage() { 'css': ChildConfigurations.cssSelect.getSelectedValue(), 'headerFooter': ChildConfigurations.headerFooterSelect.getSelectedValue(), 'localization': ChildConfigurations.localizationSelect.getSelectedValue(), - 'webhooks': SbbCommon.getCheckboxValueById('webhooks-checkbox') ? ChildConfigurations.webhooksSelect.getSelectedValue() : [], + 'webhooks': SbbCommon.getCheckboxValueById('webhooks-checkbox') ? ChildConfigurations.webhooksSelect.getSelectedValue() : null, 'headersColor': SbbCommon.getValueById('headers-color'), 'paperSize': PaperSizes.paperSizeSelect.getSelectedValue(), 'orientation': Orientations.orientationSelect.getSelectedValue(),