diff --git a/src/Perspex.Controls/Utils/UndoRedoHelper.cs b/src/Perspex.Controls/Utils/UndoRedoHelper.cs index 70e5921d8d..60b6839dad 100644 --- a/src/Perspex.Controls/Utils/UndoRedoHelper.cs +++ b/src/Perspex.Controls/Utils/UndoRedoHelper.cs @@ -42,7 +42,7 @@ namespace Perspex.Controls.Utils _currentNode = _currentNode.Previous; } - _host.UndoRedoState = _currentNode?.Value; + _host.UndoRedoState = _currentNode.Value; } public bool IsLastState => _currentNode.Next == null; @@ -72,7 +72,7 @@ namespace Perspex.Controls.Utils _currentNode = _currentNode.Next; } - _host.UndoRedoState = _currentNode?.Value; + _host.UndoRedoState = _currentNode.Value; } public void Snapshot()