Merge pull request #1179 from hedgedoc/util/replaceNull

This commit is contained in:
Yannick Bungers 2021-04-25 21:03:45 +02:00 committed by GitHub
commit 0bad4827bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -352,9 +352,9 @@ export class NotesService {
// TODO: Convert DB UUID to base64
id: note.id,
alias: note.alias,
title: note.title,
title: note.title ?? '',
createTime: (await this.getFirstRevision(note)).createdAt,
description: note.description,
description: note.description ?? '',
editedBy: note.authorColors.map(
(authorColor) => authorColor.user.userName,
),