Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: use `??` in className use (#1829)

SedationH1b0efc554889
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index 0cfb586ab..4264ce4fb 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -388,7 +388,7 @@ const MemoEditor = (props: Props) => {
return (
<div
- className={`${className} memo-editor-container ${state.fullscreen ? "fullscreen" : ""}`}
+ className={`${className ?? ""} memo-editor-container ${state.fullscreen ? "fullscreen" : ""}`}
tabIndex={0}
onKeyDown={handleKeyDown}
onDrop={handleDropEvent}