mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 02:19:52 +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) {
|
function deserializeNode(string, options) {
|
||||||
const Node = require('../models/node')
|
const Node = require('../models/node').default
|
||||||
const raw = decode(string)
|
const raw = decode(string)
|
||||||
const node = Node.fromJSON(raw, options)
|
const node = Node.fromJSON(raw, options)
|
||||||
return node
|
return node
|
||||||
|
Reference in New Issue
Block a user