Skip to content

Commit 48803d0

Browse files
committed
fix(scf): weights not exist bug
1 parent 0af767e commit 48803d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/scf/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ class Scf {
501501
if (
502502
defualtAlias &&
503503
defualtAlias.RoutingConfig &&
504-
defualtAlias.RoutingConfig.AdditionalVersionWeights
504+
defualtAlias.RoutingConfig.AdditionalVersionWeights &&
505+
defualtAlias.RoutingConfig.AdditionalVersionWeights.length > 0
505506
) {
506507
const weights = defualtAlias.RoutingConfig.AdditionalVersionWeights;
507508
let weightSum = 0;

0 commit comments

Comments
 (0)