We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2ebf1 commit e65a396Copy full SHA for e65a396
reflex/.templates/web/utils/state.js
@@ -350,7 +350,7 @@ export const applyRestEvent = async (event, socket) => {
350
if (event.handler === "uploadFiles") {
351
if (event.payload.files === undefined || event.payload.files.length === 0) {
352
// Submit the event over the websocket to trigger the event handler.
353
- return await applyEvent(Event(event.name), socket);
+ return await applyEvent(Event(event.name, { files: [] }), socket);
354
}
355
356
// Start upload, but do not wait for it, which would block other events.
0 commit comments