From e329811afe57a509f84a0d469720bf49dfeecaf6 Mon Sep 17 00:00:00 2001 From: "wuji.xwt" Date: Thu, 10 Sep 2020 17:34:50 +0800 Subject: [PATCH] style: for plugin-undo-redo --- packages/plugin-undo-redo/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-undo-redo/src/index.tsx b/packages/plugin-undo-redo/src/index.tsx index 8357bf4e2..42d31de1d 100644 --- a/packages/plugin-undo-redo/src/index.tsx +++ b/packages/plugin-undo-redo/src/index.tsx @@ -68,11 +68,11 @@ export default class UndoRedo extends PureComponent { }; handleUndoClick = (): void => { - this.history?.back(); + this.history.back(); }; handleRedoClick = (): void => { - this.history?.forward(); + this.history.forward(); }; render(): React.ReactNode {