fix: reset all settings when new video file is uploaded#1189
fix: reset all settings when new video file is uploaded#1189sudha09-git wants to merge 2 commits into
Conversation
|
@sudha09-git is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ PR Format Check Passed — @sudha09-gitBasic format checks passed. A maintainer will review your code changes. This does not mean the PR is approved — it just means the format is correct. |
👋 Thanks for your PR, @sudha09-git!Welcome to Reframe — a browser-based video editor built for everyone 🎬
What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
|
Hi @magic-peach This PR fixes issue #915 — re-uploading a new video file Changes made in src/hooks/useVideoEditor.ts: How to test:
Please review when you get a chance! |
|
/PR Recheck |
|
please approve this pull request |
Description
Related Issue
Type of Contribution
Closes [BUG] Re-uploading a new video file does not reset previous conversion settings #915
Problem
When a user uploaded a new video file without refreshing the page,
the previous preset selection, output settings, overlay settings,
and conversion state were still shown from the previous session.
This could cause users to unknowingly apply wrong settings to new files.
Changes Made
Only
src/hooks/useVideoEditor.tsmodified:recipetoDEFAULT_RECIPEon new file uploaddurationto0overlayFiletonulloverlayPositionto"bottom-right"overlaySizeto150overlayOpacityto100How to Test
Type of Contribution
Participant Info
Participant Info
Screen Recording
Recording / Loom link: ## Checklist
bun run lintpasses (no ESLint errors)bunx tsc --noEmitpasses (no TypeScript errors)aria-label/ accessible namesconsole.logstatements left in