fix(undo-redo): Remove initial state check

This commit is contained in:
Ben Gotow 2016-03-24 10:41:23 -07:00
parent 07d218dd6a
commit 454082d4c1

View file

@ -16,8 +16,10 @@ class UndoRedoComponent extends React.Component
constructor: (@props) ->
@_timeout = null
@state = @_getStateFromStores()
@_ensureTimeout(@state)
# Note: we do not set from initial state, because we don't want
# the last item on the stack to appear, just the next one.
@state = {}
_clearTimeout: =>
clearTimeout(@_timeout)