Skip to content

Commit 9d51ebf

Browse files
committed
Fixing bad reference
1 parent fcecab4 commit 9d51ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ export const applyEvent = async (event, socket, navigate, params) => {
274274
[event.payload.url.replace("DOWNLOAD_AS_BLOB:", "")],
275275
{ type: "application/octet-stream" },
276276
);
277-
a.href = URL.createObjectURL(blob);
277+
const url = URL.createObjectURL(blob);
278+
a.href = url;
278279
window.setTimeout(function () {
279280
window.URL.revokeObjectURL(url);
280281
}, 60000); // Wait 60 seconds

0 commit comments

Comments
 (0)