浏览代码

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

-LAN- 7 月之前
父节点
当前提交
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):