Skip to content

Commit 647497e

Browse files
author
vikasrohit
authored
Merge pull request #3198 from appirio-tech/hotfix/post-release-2.4.13.3
Hotfix/post release 2.4.13.3
2 parents 4ea1e0b + 8d9ce68 commit 647497e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/markdownToState.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {convertFromRaw} from 'draft-js'
2+
import _ from 'lodash'
23
const Remarkable = require('remarkable')
34

45
// Block level items, key is Remarkable's key for them, value returned is
@@ -294,7 +295,7 @@ function markdownToState(markdown, options = {}) {
294295

295296
return convertFromRaw({
296297
entityMap,
297-
blocks
298+
blocks: _.filter(blocks, b => b.text)
298299
})
299300
}
300301

0 commit comments

Comments
 (0)