diff --git a/reflex/vars/base.py b/reflex/vars/base.py index c8aa997318..95c6f62db5 100644 --- a/reflex/vars/base.py +++ b/reflex/vars/base.py @@ -1264,6 +1264,7 @@ def __init__(self, default_value: VAR_TYPE): Args: default_value: The default value. """ + super().__init__("") self._default = default_value @property diff --git a/reflex/vars/sequence.py b/reflex/vars/sequence.py index cdaae28e42..2fdc3bb7a8 100644 --- a/reflex/vars/sequence.py +++ b/reflex/vars/sequence.py @@ -818,7 +818,7 @@ def create( """ return cls( _js_expr="", - _var_type=_var_type, + _var_type=slice if _var_type is None else _var_type, _var_data=_var_data, _var_value=value, )