소스 검색

Revert "fix(关系): 优化固定值的判断"

This reverts commit 015df6d6
zhangji 2 년 전
부모
커밋
8fac4eab36
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jetlinks-components/relation-component/src/main/java/org/jetlinks/community/relation/utils/VariableSource.java

+ 1 - 1
jetlinks-components/relation-component/src/main/java/org/jetlinks/community/relation/utils/VariableSource.java

@@ -111,7 +111,7 @@ public class VariableSource implements Serializable {
                                 ConfigKey<?> propertyPath) {
         validate();
         if (getSource() == VariableSource.Source.fixed) {
-            return value == null ? Flux.empty() : CastUtils.flatStream(Flux.just(value));
+            return CastUtils.flatStream(Flux.just(value));
         }
         if (getSource() == VariableSource.Source.upper) {
             return Mono