Skip to content

Instantly share code, notes, and snippets.

@siegy22
Created May 31, 2018 12:38
Show Gist options
  • Save siegy22/8dd4717fbd9ba46d75b9ca3182174c39 to your computer and use it in GitHub Desktop.
Save siegy22/8dd4717fbd9ba46d75b9ca3182174c39 to your computer and use it in GitHub Desktop.
@@ -13,13 +13,7 @@ export default class OrphanAgendaItem extends AgendaItem {
number: this.number(0),
notes: this.attr(null, notes =>
notes.map((n) => {
- const note = new Note();
- note.id = n.id;
- note.annotation = n.annotation;
- note.public = n.public;
- note.author = n.author;
- note.created = n.created;
- return note;
+ return new Note(n);
}),
),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment