Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: resetting the fieldMapping after every file upload(#457) #476

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

R-Sourabh
Copy link
Contributor

Related Issues

#457

Short Description and Why It's Useful

  • Added code to reset the field mapping.
  • After uploading a new file with different columns, the previously mapped fields are reset, and the modal props are also updated, which solves the 4th case.

Contribution and Currently Important Rules Acceptance

@R-Sourabh R-Sourabh changed the title Improved: resetting the fieldMapping on appropriate time(#457) Improved: resetting the fieldMapping at theappropriate time(#457) Oct 14, 2024
@R-Sourabh R-Sourabh changed the title Improved: resetting the fieldMapping at theappropriate time(#457) Improved: resetting the fieldMapping at the appropriate time(#457) Oct 14, 2024
@R-Sourabh R-Sourabh changed the title Improved: resetting the fieldMapping at the appropriate time(#457) Improved: resetting the fieldMapping after every file upload(#457) Oct 14, 2024
@@ -216,7 +216,9 @@ async function parse(event) {
content.value = await parseCsv(uploadedFile.value);
fileColumns.value = Object.keys(content.value[0]);
showToast(translate("File uploaded successfully."));
fileUploaded.value =!fileUploaded.value;
fileUploaded.value =!fileUploaded.value;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fileUploaded.value =!fileUploaded.value;
fileUploaded.value = !fileUploaded.value;

@ymaheshwari1 ymaheshwari1 merged commit 1d10f10 into hotwax:main Oct 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants