mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 09:59:48 +02:00
Fix an invalid require statement in base-64 serializer (#1108)
This commit is contained in:
committed by
Ian Storm Taylor
parent
9760f945c8
commit
90c430edac
@@ -48,7 +48,7 @@ function deserialize(string, options) {
|
||||
*/
|
||||
|
||||
function deserializeNode(string, options) {
|
||||
const Node = require('../models/node')
|
||||
const Node = require('../models/node').default
|
||||
const raw = decode(string)
|
||||
const node = Node.fromJSON(raw, options)
|
||||
return node
|
||||
|
Reference in New Issue
Block a user