fix: use correct method to get object's length (#957)

* fix: use correct method to get object's length
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 @@
     }
 
     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"