Skip to content

Commit

Permalink
fix: use correct method to get object's length (apache#957)
Browse files Browse the repository at this point in the history
* fix: use correct method to get object's length
  • Loading branch information
juzhiyuan authored Dec 2, 2020
1 parent 17ad69b commit c574813
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Route/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c574813

Please sign in to comment.