Skip to content

Commit 628225c

Browse files
committed
Fix #90: Create blank data when initial data is null
1 parent 03e52bd commit 628225c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editorState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class EditorState {
2525
if (typeof data === 'string' && data !== '')
2626
data = JSON.parse(data);
2727

28-
if (!data && data !== null) {
28+
if (!data) {
2929
// create empty data from schema
3030
data = getBlankData(schema, (ref) => EditorState.getRef(ref, schema));
3131
} else {

0 commit comments

Comments
 (0)