fix: Auto-refresh page on profile photo update
This commit is contained in:
parent
9711b0c926
commit
06fc962c09
@ -7,8 +7,7 @@
|
|||||||
async function submit(e: SubmitEvent) {
|
async function submit(e: SubmitEvent) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (files.length === 0) return;
|
if (files.length === 0) return;
|
||||||
const res = await generateStream(files[0]);
|
await generateStream(files[0]).then(() => window.location.reload());
|
||||||
console.log(res);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user