浏览代码

Accordion style merge issue fix (#2446)

Elijah Ahianyo 1 年之前
父节点
当前提交
aad009e5df
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      reflex/vars.py

+ 1 - 4
reflex/vars.py

@@ -436,12 +436,9 @@ class Var:
 
         Returns:
             The merged var.
-
-        Raises:
-            ValueError: If the other value to be merged is None.
         """
         if other is None:
-            raise ValueError("The value to be merged cannot be None.")
+            return self._replace()
         if not isinstance(other, Var):
             other = Var.create(other)
         return self._replace(