mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Avoid error when no arguments are passed
This commit is contained in:
parent
f88cd9017d
commit
9b3b545219
1 changed files with 4 additions and 1 deletions
|
@ -202,7 +202,10 @@ class Form extends Component {
|
|||
Get a list of the fields to be included in the current form
|
||||
|
||||
*/
|
||||
getFieldNames = ({ schema = this.schema, excludeHiddenFields = true }) => {
|
||||
getFieldNames = (args = {}) => {
|
||||
|
||||
const { schema = this.schema, excludeHiddenFields = true } = args;
|
||||
|
||||
const { fields, hideFields } = this.props;
|
||||
|
||||
// get all editable/insertable fields (depending on current form type)
|
||||
|
|
Loading…
Add table
Reference in a new issue