mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-25 20:44:49 -04:00
fix(frontend): make note details in redux optional
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
118f158ad1
commit
6698450461
50 changed files with 278 additions and 135 deletions
|
@ -11,5 +11,5 @@ import { useApplicationState } from './use-application-state'
|
|||
* @return The markdown content of the note
|
||||
*/
|
||||
export const useNoteMarkdownContent = (): string => {
|
||||
return useApplicationState((state) => state.noteDetails.markdownContent.plain)
|
||||
return useApplicationState((state) => state.noteDetails?.markdownContent.plain ?? '')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue