mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -05:00
Merge pull request #345 from davidmehren/fix-343
findNoteOrCreate: Create new note with empty string instead of `null`
This commit is contained in:
commit
d3aa040626
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