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

This commit is contained in:
SedationH 2023-06-15 20:05:19 +08:00 committed by GitHub
parent 6dca551164
commit 1b0efc5548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}