Created
May 31, 2018 12:38
-
-
Save siegy22/8dd4717fbd9ba46d75b9ca3182174c39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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