Skip to content

Commit ca680db

Browse files
committed
is not None
1 parent 60fadf5 commit ca680db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reflex/event.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,9 @@ def as_event_spec(self, handler: EventHandler) -> EventSpec:
890890
),
891891
(
892892
Var(_js_expr="extra_headers"),
893-
LiteralVar.create(self.extra_headers or {}),
893+
LiteralVar.create(
894+
self.extra_headers if self.extra_headers is not None else {}
895+
),
894896
),
895897
]
896898
if self.on_upload_progress is not None:

0 commit comments

Comments
 (0)