From 1024fc6cab1c40455334ddc92ef5e7709696a4c3 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Wed, 27 Aug 2025 14:41:50 +0200 Subject: [PATCH] Don't overwrite object => work with copies --- public/js/plugins/Api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/plugins/Api.js b/public/js/plugins/Api.js index 034c326e9..0b8e2fd17 100644 --- a/public/js/plugins/Api.js +++ b/public/js/plugins/Api.js @@ -311,10 +311,10 @@ export default { const result = _merge_error_config(config?.errorHandling); if (!config?.form) { - result.combine.form = []; + result.combine = { ...result.combine, form: [] }; } else { const formHandler = result.handler.form; - result.handler.form = errors => formHandler(config.form, errors); + result.handler = { ...result.handler, form: errors => formHandler(config.form, errors) }; } return result;