{"action":"created","issue":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/505","repository_url":"https://api.github.com/repos/ianstormtaylor/slate","labels_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/505/comments","events_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/505/events","html_url":"https://github.com/ianstormtaylor/slate/issues/505","id":194128541,"number":505,"title":"documents should be allowed to have no nodes","user":{"login":"tyler-johnson","id":310038,"avatar_url":"https://avatars3.githubusercontent.com/u/310038?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-johnson","html_url":"https://github.com/tyler-johnson","followers_url":"https://api.github.com/users/tyler-johnson/followers","following_url":"https://api.github.com/users/tyler-johnson/following{/other_user}","gists_url":"https://api.github.com/users/tyler-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-johnson/subscriptions","organizations_url":"https://api.github.com/users/tyler-johnson/orgs","repos_url":"https://api.github.com/users/tyler-johnson/repos","events_url":"https://api.github.com/users/tyler-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-johnson/received_events","type":"User","site_admin":false},"labels":[{"id":404055005,"url":"https://api.github.com/repos/ianstormtaylor/slate/labels/bug","name":"bug","color":"f9d0c4","default":true},{"id":404056337,"url":"https://api.github.com/repos/ianstormtaylor/slate/labels/%E2%9C%8C%20help-please","name":"✌ help-please","color":"444444","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T18:27:42Z","updated_at":"2017-03-18T00:50:14Z","closed_at":"2017-02-23T23:06:22Z","body":"This is an extreme edge case, but if a Slate document only contains a single void block node, the editor locks up and no changes can be made. This can be seen in the \"Images\" example on slatejs.org.\r\n\r\nI attempted to fix this with a schema rule that added blocks before and after the void node, however this lead other issues with the node key. I also don't like that solution as it adds additional nodes that would be otherwise unnecessary.\r\n\r\nI'm not sure the best way to fix this and I'm not totally sure this is Slate's responsibility. Just looking for some direction here."},"comment":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/comments/287504063","html_url":"https://github.com/ianstormtaylor/slate/issues/505#issuecomment-287504063","issue_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/505","id":287504063,"user":{"login":"oyeanuj","id":9633371,"avatar_url":"https://avatars1.githubusercontent.com/u/9633371?v=3","gravatar_id":"","url":"https://api.github.com/users/oyeanuj","html_url":"https://github.com/oyeanuj","followers_url":"https://api.github.com/users/oyeanuj/followers","following_url":"https://api.github.com/users/oyeanuj/following{/other_user}","gists_url":"https://api.github.com/users/oyeanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/oyeanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyeanuj/subscriptions","organizations_url":"https://api.github.com/users/oyeanuj/orgs","repos_url":"https://api.github.com/users/oyeanuj/repos","events_url":"https://api.github.com/users/oyeanuj/events{/privacy}","received_events_url":"https://api.github.com/users/oyeanuj/received_events","type":"User","site_admin":false},"created_at":"2017-03-18T00:50:14Z","updated_at":"2017-03-18T00:50:14Z","body":"@skogsmaskin @ianstormtaylor With the PR #622, I am seeing the following error when I have an empty object (or an object with empty node array) as the initial state: \r\n\r\n```\r\nerror given was: TypeError: Cannot read property 'key' of undefined\r\n[1]     at Object.deserializeDocument (node_modules/slate/lib/serializers/raw.js:101:18)\r\n```\r\n\r\nThe error is thrown here:\r\nhttps://github.com/ianstormtaylor/slate/blob/master/src/serializers/raw.js#L64"}}
{"actor":{"display_login":"oyeanuj"}}