1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

Revert "Switched Map to fromJS in order to convert the whole js object (also nested data structures) to immutable (#2619)" (#2687)

This reverts commit b8c372df93.
This commit is contained in:
Sunny Hirai
2019-04-18 21:16:13 -07:00
committed by GitHub
parent 2a0bb47379
commit 02130902a1

View File

@@ -1,5 +1,5 @@
import isPlainObject from 'is-plain-object' import isPlainObject from 'is-plain-object'
import { fromJS, List, Record } from 'immutable' import { List, Map, Record } from 'immutable'
import KeyUtils from '../utils/key-utils' import KeyUtils from '../utils/key-utils'
import Node from './node' import Node from './node'
@@ -88,7 +88,7 @@ class Block extends Record(DEFAULTS) {
const block = new Block({ const block = new Block({
key, key,
type, type,
data: fromJS(data), data: Map(data),
nodes: Node.createList(nodes), nodes: Node.createList(nodes),
}) })