Skip to content

Commit e65a396

Browse files
authored
send empty files list (#5323)
1 parent 5f2ebf1 commit e65a396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/.templates/web/utils/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export const applyRestEvent = async (event, socket) => {
350350
if (event.handler === "uploadFiles") {
351351
if (event.payload.files === undefined || event.payload.files.length === 0) {
352352
// Submit the event over the websocket to trigger the event handler.
353-
return await applyEvent(Event(event.name), socket);
353+
return await applyEvent(Event(event.name, { files: [] }), socket);
354354
}
355355

356356
// Start upload, but do not wait for it, which would block other events.

0 commit comments

Comments
 (0)