Browse Source

Accordion style merge issue fix (#2446)

Elijah Ahianyo 1 year ago
parent
commit
aad009e5df
1 changed files with 1 additions and 4 deletions
  1. 1 4
      reflex/vars.py

+ 1 - 4
reflex/vars.py

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