mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
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:
parent
58e2932c1a
commit
243fcabcaf
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ export class Note {
|
|||
newNote.alias = alias;
|
||||
newNote.viewcount = 0;
|
||||
newNote.owner = owner;
|
||||
newNote.authorColors = [];
|
||||
newNote.userPermissions = [];
|
||||
newNote.groupPermissions = [];
|
||||
return newNote;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue