You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2024/03/13 02:06:37 UTC

(shenyu-dashboard) branch master updated: fixed #410 (#411)

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

dengliming 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 3ac4dd97 fixed #410 (#411)
3ac4dd97 is described below

commit 3ac4dd9760fe5af02308d7bc5b9fbb6a4f8ff63b
Author: Kerwin Bryant <ke...@qq.com>
AuthorDate: Wed Mar 13 10:06:31 2024 +0800

    fixed #410 (#411)
---
 src/routes/System/PluginHandle/index.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/routes/System/PluginHandle/index.js b/src/routes/System/PluginHandle/index.js
index 01a16ad4..654868d2 100644
--- a/src/routes/System/PluginHandle/index.js
+++ b/src/routes/System/PluginHandle/index.js
@@ -307,7 +307,13 @@ export default class PluginHandle extends Component {
             if (pluginHandleList) {
               pluginHandleList.forEach(item => {
                 if (item.extObj) {
-                  let obj = JSON.parse(item.extObj)
+                  let obj = {};
+                  try {
+                    obj = JSON.parse(item.extObj);
+                  } catch (e) {
+                    // eslint-disable-next-line no-console
+                    console.error(e);
+                  }
                   if (obj.required) {
                     item.required = obj.required
                   }