(js) Fix creation of note on existing card

Fixes #3886
pull/225/head
Francis Lachapelle 2016-11-09 10:37:28 -05:00
parent c596bacccb
commit fecbd49541
1 changed files with 1 additions and 1 deletions

View File

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