Don't return cached internal array for child notes

This commit is contained in:
Dan Stillman 2019-04-16 05:33:31 -04:00
parent 9b7984ef26
commit 4eec421fe4

View file

@ -2041,7 +2041,7 @@ Zotero.Item.prototype.getNotes = function(includeTrashed) {
+ 'With' + (includeTrashed ? '' : 'out') + 'Trashed';
if (this._notes[cacheKey]) {
return this._notes[cacheKey];
return [...this._notes[cacheKey]];
}
var rows = this._notes.rows.concat();