瀏覽代碼

update var join function to use empty string (#2270)

Tom Gotsman 1 年之前
父節點
當前提交
d6374ca3f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/vars.py

+ 1 - 1
reflex/vars.py

@@ -1324,7 +1324,7 @@ class Var:
             raise TypeError(f"Cannot join non-list var {self._var_full_name}.")
             raise TypeError(f"Cannot join non-list var {self._var_full_name}.")
 
 
         if other is None:
         if other is None:
-            other = Var.create_safe("")
+            other = Var.create_safe('""')
         if isinstance(other, str):
         if isinstance(other, str):
             other = Var.create_safe(json.dumps(other))
             other = Var.create_safe(json.dumps(other))
         else:
         else: