(js) Fix initialization of a new Card's note

pull/225/head
Francis Lachapelle 2016-10-25 09:27:57 -04:00
parent 4d0dcc4978
commit c709b9c04b
1 changed files with 3 additions and 3 deletions

View File

@ -154,9 +154,9 @@
});
if (this.isgroup)
this.c_component = 'vlist';
if (this.notes && this.notes.length)
this.notes = _.map(this.notes, function(note) { return { 'value': note }; });
else
if (data.notes && data.notes.length)
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
else if (!this.notes)
this.notes = [ { value: '' } ];
// Instanciate Card objects for list members
angular.forEach(this.refs, function(o, i) {