Skip to content

Commit

Permalink
ic: cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Jul 15, 2017
1 parent a3e4d09 commit bc28af1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cli/cms/editor/form.js
Expand Up @@ -3,9 +3,7 @@ import extend from 'extend'
export default class Form {

constructor() {
this._form = {

}
this._form = {}
this._key = []
}

Expand All @@ -18,7 +16,7 @@ export default class Form {
}

/**
* Check if key is not is the form array
* Check if key is not in the form array
* @param {[type]} key [description]
* @return {[type]} [description]
*/
Expand Down Expand Up @@ -60,7 +58,6 @@ export default class Form {
}

obj = extend(true, defaultValues, obj)
obj.key = obj.key//.replace(/\./, '-')

if(obj.key.indexOf('[') < 0 && obj.key.indexOf('.') > -1) {
obj.block = obj.key.split('.')[0]
Expand Down

0 comments on commit bc28af1

Please sign in to comment.