This is an automated email from the ASF dual-hosted git repository.

liuhongyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new deed8d33 [type:fix] fix handler undefined problem (#518)
deed8d33 is described below

commit deed8d330347a36ecd5c1bcaa63a8937a07419ec
Author: VampireAchao <[email protected]>
AuthorDate: Tue Jan 14 17:23:25 2025 +0800

    [type:fix] fix handler undefined problem (#518)
---
 src/routes/Plugin/Common/Rule.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/routes/Plugin/Common/Rule.js b/src/routes/Plugin/Common/Rule.js
index 203211d8..23d7c8fa 100644
--- a/src/routes/Plugin/Common/Rule.js
+++ b/src/routes/Plugin/Common/Rule.js
@@ -219,7 +219,7 @@ class AddModal extends Component {
             // customizationRule
             const customHandle = this.handleComponentRef.getData(values);
             handle = JSON.stringify({
-              ...JSON.parse(handle),
+              ...JSON.parse(handle ?? "{}"),
               ...JSON.parse(customHandle),
             });
           }

Reply via email to