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 166 Last Updated: 12 June, 2024