You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ch...@apache.org on 2020/12/02 15:38:00 UTC

[apisix-dashboard] branch master updated: fix: use correct method to get object's length (#957)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c574813  fix: use correct method to get object's length (#957)
c574813 is described below

commit c574813eea82edcd6d95a2ea0f8857b736049717
Author: 琚致远 <ju...@apache.org>
AuthorDate: Wed Dec 2 23:37:49 2020 +0800

    fix: use correct method to get object's length (#957)
    
    * fix: use correct method to get object's length
---
 web/package.json                 | 2 +-
 web/src/pages/Route/transform.ts | 2 +-
 web/yarn.lock                    | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/web/package.json b/web/package.json
index da5799d..d2b53bf 100644
--- a/web/package.json
+++ b/web/package.json
@@ -55,7 +55,7 @@
     "@ant-design/icons": "^4.0.0",
     "@ant-design/pro-layout": "^6.0.0",
     "@ant-design/pro-table": "2.6.3",
-    "@api7-dashboard/plugin": "^1.0.10",
+    "@api7-dashboard/plugin": "^1.0.15",
     "@api7-dashboard/pluginchart": "^1.0.14",
     "@api7-dashboard/ui": "^1.0.3",
     "@rjsf/antd": "2.2.0",
diff --git a/web/src/pages/Route/transform.ts b/web/src/pages/Route/transform.ts
index 66d9fe1..bb9687e 100644
--- a/web/src/pages/Route/transform.ts
+++ b/web/src/pages/Route/transform.ts
@@ -63,7 +63,7 @@ export const transformStepData = ({
     }
 
     if (redirect.http_to_https) {
-      if (Object(data.plugins).length === 0) {
+      if (Object.keys(data.plugins!).length === 0) {
         data.plugins = {};
       }
       data.plugins!.redirect = redirect;
diff --git a/web/yarn.lock b/web/yarn.lock
index 997d175..ec89ce3 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -187,10 +187,10 @@
     lodash "^4.17.15"
     resize-observer-polyfill "^1.5.0"
 
-"@api7-dashboard/plugin@^1.0.10":
-  version "1.0.10"
-  resolved "https://registry.yarnpkg.com/@api7-dashboard/plugin/-/plugin-1.0.10.tgz#9f554f62c7c1f9be9ee36f084cef2fb3d2296ae5"
-  integrity sha512-ewPU6o6WOehn3pnV0DRyNGSyf4OrKuh3mVe11EUPnp4rtzvikjlll91xi27Zu33r+Wm1Jvvm+T6OkwcgXFVdPg==
+"@api7-dashboard/plugin@^1.0.15":
+  version "1.0.15"
+  resolved "https://registry.yarnpkg.com/@api7-dashboard/plugin/-/plugin-1.0.15.tgz#690ab5666125ef7e45c6841fa348e9f3870b890b"
+  integrity sha512-B7B0zmRxWQwNjdqm6GI91E5QLaJ3Dzs6VE3OP6zVz5Mlgx3KuyfYGwB8E0jr+ApeB59RvgHAGgRExN6YDMTzFA==
   dependencies:
     "@rjsf/antd" "^2.3.0"
     "@rjsf/core" "^2.3.0"