API Reference > imodeljs-frontend > Tools > PrimitiveTool > onUndoPreviousStep onUndoPreviousStep Method Called to reverse to a previous tool state (ex. undo last data button). onUndoPreviousStep(): Promise<boolean> Returns - Promise<boolean> false to instead reverse the most recent transaction. Defined in core/frontend/src/tools/PrimitiveTool.ts Line 149 Last Updated: 13 June, 2024