From fb477f9f7ef9a188196b6a1eaef3ec979d541d49 Mon Sep 17 00:00:00 2001 From: Elijah Date: Tue, 11 Jun 2024 10:10:41 +0000 Subject: [PATCH] rebase on main --- reflex/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/event.py b/reflex/event.py index e63745cb28..c9799a527d 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -390,7 +390,8 @@ def as_event_spec(self, handler: EventHandler) -> EventSpec: ( Var.create_safe("files", _var_is_string=False), Var.create_safe( - f"filesById.{upload_id}", _var_is_string=False + f"filesById[{Var.create_safe(upload_id, _var_is_string=True)._var_name_unwrapped}]", + _var_is_string=False, )._replace(_var_data=upload_files_context_var_data), ), (