Skip to content

Commit

Permalink
[xprototype#4/feature] Avoid fields that already existis
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcorrea committed Mar 29, 2019
1 parent 51ca71a commit c7e77ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/Prototype/Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default class Skeleton extends Base {
*/
field (name, label = '', type = undefined) {
this.__currentField = name
if (this.__fields[name]) {
return this
}

let is = this.is
const attrs = { value: undefined, disable: false }

Expand Down

0 comments on commit c7e77ee

Please sign in to comment.