appsmith
appsmith copied to clipboard
fix: remove file references on click of cancel button
Description
To remove the selectedFiles
meta property whenever the cancel button is clicked. This will make sure to remove the files from the redux store and also from the uppy's instance.
Fixes #17659
Type of change
- Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Updated the FilePickerV2_spec.js
with the following scenario:
- Click on cancel button
- Check the file picker button for the file count text. Since all files are deleted the text inside the file picker button becomes "Select Files"
- Check the API page and check the evaluated value inside the binding
Checklist:
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
appsmith | ✅ Ready (Inspect) | Visit Preview | Oct 18, 2022 at 1:48PM (UTC) |
Unable to find test scripts. Please add necessary tests to the PR.
Unable to find test scripts. Please add necessary tests to the PR.
Unable to find test scripts. Please add necessary tests to the PR.
/ok-to-test sha=7cdc0fa
/ok-to-test sha=7cdc0fa
Tested on DP. Working fine This fixes #17659
/ok-to-test sha=7cdc0fa
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3275054572.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 7cdc0fa
.
PR: 17664.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-63465d4789020c7ac296d08d?pr=17664&runId=3275054572_1
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3275489373.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 7cdc0fa
.
PR: 17664.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-63465d4789020c7ac296d08d?pr=17664&runId=3275489373_1
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3276006213.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 7cdc0fa
.
PR: 17664.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-63465d4789020c7ac296d08d?pr=17664&runId=3276006213_1
/ok-to-test sha=7cdc0fa
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3278347342.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 7cdc0fa
.
PR: 17664.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-63465d4789020c7ac296d08d?pr=17664&runId=3278347342_1