NoteEntity: Always initialize arrays

The `create()` function did not initialize all arrays, which caused them to be `undefined` instead of empty.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-19 17:30:58 +02:00
parent 58e2932c1a
commit 243fcabcaf
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -71,6 +71,9 @@ export class Note {
newNote.alias = alias;
newNote.viewcount = 0;
newNote.owner = owner;
newNote.authorColors = [];
newNote.userPermissions = [];
newNote.groupPermissions = [];
return newNote;
}
}