Skip to content

Commit 1dc7d84

Browse files
authored
Merge pull request #328 from avinxshKD/fix/redo-null-guard
fix: add null guard to redo() to match undo() pattern
2 parents 6afd11b + 94a5b0a commit 1dc7d84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/toolbarActions/toolbarFunctions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const undo = (state) => {
175175
if (getGraphFun(state)) getGraphFun(state).undo();
176176
};
177177
const redo = (state) => {
178-
getGraphFun(state).redo();
178+
if (getGraphFun(state)) getGraphFun(state).redo();
179179
};
180180

181181
const openShareModal = (state, setState) => {

0 commit comments

Comments
 (0)