(js) Fix initialization of a new Card's note
This commit is contained in:
parent
4d0dcc4978
commit
c709b9c04b
|
@ -154,9 +154,9 @@
|
||||||
});
|
});
|
||||||
if (this.isgroup)
|
if (this.isgroup)
|
||||||
this.c_component = 'vlist';
|
this.c_component = 'vlist';
|
||||||
if (this.notes && this.notes.length)
|
if (data.notes && data.notes.length)
|
||||||
this.notes = _.map(this.notes, function(note) { return { 'value': note }; });
|
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
|
||||||
else
|
else if (!this.notes)
|
||||||
this.notes = [ { value: '' } ];
|
this.notes = [ { value: '' } ];
|
||||||
// Instanciate Card objects for list members
|
// Instanciate Card objects for list members
|
||||||
angular.forEach(this.refs, function(o, i) {
|
angular.forEach(this.refs, function(o, i) {
|
||||||
|
|
Loading…
Reference in a new issue