Skip to content

Commit b5e7463

Browse files
committed
fix: use correct method to get object's length
1 parent d3a0736 commit b5e7463

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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;

0 commit comments

Comments
 (0)