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

Add clearFields to export #3626

Merged
merged 2 commits into from
Nov 23, 2017
Merged

Add clearFields to export #3626

merged 2 commits into from
Nov 23, 2017

Conversation

caseybaggz
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 20, 2017

Codecov Report

Merging #3626 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3626   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          70      70           
  Lines        1571    1572    +1     
======================================
+ Hits         1571    1572    +1
Impacted Files Coverage Δ
src/actions.js 100% <ø> (ø) ⬆️
src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81169ce...46ec450. Read the comment docs.

Copy link
Collaborator

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

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

Nice finding!

@erikras erikras merged commit 8c6ec32 into redux-form:master Nov 23, 2017
@erikras
Copy link
Member

erikras commented Nov 27, 2017

Published in v7.2.0.

@shkdmhhb
Copy link

shkdmhhb commented May 5, 2018

Not sure if this the right place for this, should clearFields be used on array fields?

I m getting the following error for touched array field inputs: Cannot delete non-numerical index from an array. Given: "touched"

Sample state:

{
   form: {
      testForm: {
         fields: {
            lastNames: [
                { 
                    lastName: {
                        touched: true,
                        visited: true
                    }
                }
            ]
         }
       }
   }
}

// following call will result in error, "Cannot delete non-numerical index from an array"
dispatch(clearFields('testForm', false, false, 'lastNames'));

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants