소스 검색

fix(segments): return empty string instead of "null" for text, log, and markdown properties (#9651)

-LAN- 6 달 전
부모
커밋
5267f34e76
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      api/core/variables/segments.py

+ 3 - 3
api/core/variables/segments.py

@@ -56,15 +56,15 @@ class NoneSegment(Segment):
 
     @property
     def text(self) -> str:
-        return "null"
+        return ""
 
     @property
     def log(self) -> str:
-        return "null"
+        return ""
 
     @property
     def markdown(self) -> str:
-        return "null"
+        return ""
 
 
 class StringSegment(Segment):