Skip to content

Commit

Permalink
fix: use ?? in className use (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedationh authored Jun 15, 2023
1 parent 6dca551 commit 1b0efc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/MemoEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1b0efc5

Please sign in to comment.