mirror of
https://github.com/vale981/Vulcan
synced 2025-03-04 17:21:37 -05:00
rework arrow function with default value
This commit is contained in:
parent
ffb2ed555b
commit
744a02be32
1 changed files with 4 additions and 2 deletions
|
@ -319,13 +319,15 @@ class SmartForm extends Component {
|
|||
Note: when submitting the form (getData()), do not include any extra fields.
|
||||
|
||||
*/
|
||||
getFieldNames = (args = {}) => {
|
||||
getFieldNames = (args) => {
|
||||
// we do this to avoid having default values in arrow functions, which breaks MS Edge support. See https://github.com/meteor/meteor/issues/10171
|
||||
let args0 = args || {};
|
||||
const {
|
||||
schema = this.state.schema,
|
||||
excludeHiddenFields = true,
|
||||
replaceIntlFields = false,
|
||||
addExtraFields = true
|
||||
} = args;
|
||||
} = args0;
|
||||
|
||||
const { fields, addFields } = this.props;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue