Skip to content

Commit

Permalink
fix: resolve crash after removing content from editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenderov committed Sep 22, 2024
1 parent e739cdb commit 97e91f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/components/Input/components/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Editor = ({ name, disabled, presetName, maxLength }) => {
editor={ClassicEditor}
config={preset.editorConfig}
disabled={disabled}
data={value}
data={value ?? ''}
onReady={(editor) => {
if (preset.editorConfig.WordCountPlugin) {
const wordCountPlugin = editor.plugins.get('WordCount');
Expand Down

0 comments on commit 97e91f8

Please sign in to comment.