mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-02 15:52:05 +00: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
5d07481387
commit
f5e043b8b1
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