mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 21:21:21 +02:00
fix to default document.nodes to an immutable list, closes #460
This commit is contained in:
@@ -13,7 +13,7 @@ import './inline'
|
||||
import Block from './block'
|
||||
import Node from './node'
|
||||
import generateKey from '../utils/generate-key'
|
||||
import { OrderedMap, Record } from 'immutable'
|
||||
import { List, Record } from 'immutable'
|
||||
|
||||
/**
|
||||
* Default properties.
|
||||
@@ -23,7 +23,7 @@ import { OrderedMap, Record } from 'immutable'
|
||||
|
||||
const DEFAULTS = {
|
||||
key: null,
|
||||
nodes: new OrderedMap(),
|
||||
nodes: new List(),
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user