Skip to content

Commit 09c33a8

Browse files
authored
handle upload id being a var in as event spec (#5850)
1 parent 5f3bf56 commit 09c33a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def as_event_spec(self, handler: EventHandler) -> EventSpec:
875875
upload_files_context_var_data,
876876
)
877877

878-
upload_id = self.upload_id or DEFAULT_UPLOAD_ID
878+
upload_id = self.upload_id if self.upload_id is not None else DEFAULT_UPLOAD_ID
879879
spec_args = [
880880
(
881881
Var(_js_expr="files"),

0 commit comments

Comments
 (0)