mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
fix(undo-redo): Remove initial state check
This commit is contained in:
parent
07d218dd6a
commit
454082d4c1
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue