mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
findNoteOrCreate: Create new note with empty string instead of null
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
2c7d743cb6
commit
3ac388b765
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export module NoteUtils {
|
||||||
}
|
}
|
||||||
}).then(function (note) {
|
}).then(function (note) {
|
||||||
if (!note) {
|
if (!note) {
|
||||||
return newNote(req, res, null)
|
return newNote(req, res, "")
|
||||||
}
|
}
|
||||||
if (!checkViewPermission(req, note)) {
|
if (!checkViewPermission(req, note)) {
|
||||||
return errors.errorForbidden(res)
|
return errors.errorForbidden(res)
|
||||||
|
|
Loading…
Reference in a new issue