Skip to content

Commit c574813

Browse files
authored
fix: use correct method to get object's length (#957)
* fix: use correct method to get object's length
1 parent 17ad69b commit c574813

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@ant-design/icons": "^4.0.0",
5656
"@ant-design/pro-layout": "^6.0.0",
5757
"@ant-design/pro-table": "2.6.3",
58-
"@api7-dashboard/plugin": "^1.0.10",
58+
"@api7-dashboard/plugin": "^1.0.15",
5959
"@api7-dashboard/pluginchart": "^1.0.14",
6060
"@api7-dashboard/ui": "^1.0.3",
6161
"@rjsf/antd": "2.2.0",

web/src/pages/Route/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const transformStepData = ({
6363
}
6464

6565
if (redirect.http_to_https) {
66-
if (Object(data.plugins).length === 0) {
66+
if (Object.keys(data.plugins!).length === 0) {
6767
data.plugins = {};
6868
}
6969
data.plugins!.redirect = redirect;

web/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@
187187
lodash "^4.17.15"
188188
resize-observer-polyfill "^1.5.0"
189189

190-
"@api7-dashboard/plugin@^1.0.10":
191-
version "1.0.10"
192-
resolved "https://registry.yarnpkg.com/@api7-dashboard/plugin/-/plugin-1.0.10.tgz#9f554f62c7c1f9be9ee36f084cef2fb3d2296ae5"
193-
integrity sha512-ewPU6o6WOehn3pnV0DRyNGSyf4OrKuh3mVe11EUPnp4rtzvikjlll91xi27Zu33r+Wm1Jvvm+T6OkwcgXFVdPg==
190+
"@api7-dashboard/plugin@^1.0.15":
191+
version "1.0.15"
192+
resolved "https://registry.yarnpkg.com/@api7-dashboard/plugin/-/plugin-1.0.15.tgz#690ab5666125ef7e45c6841fa348e9f3870b890b"
193+
integrity sha512-B7B0zmRxWQwNjdqm6GI91E5QLaJ3Dzs6VE3OP6zVz5Mlgx3KuyfYGwB8E0jr+ApeB59RvgHAGgRExN6YDMTzFA==
194194
dependencies:
195195
"@rjsf/antd" "^2.3.0"
196196
"@rjsf/core" "^2.3.0"

0 commit comments

Comments
 (0)