Skip to content

Commit

Permalink
fix: set the zoom tool active when deselecting another tool
Browse files Browse the repository at this point in the history
close #2066
  • Loading branch information
hamed-musallam committed Jan 16, 2023
1 parent ad33c74 commit ef718c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/hooks/useToolsFunctions.ts
Expand Up @@ -43,7 +43,7 @@ export default function useToolsFunctions() {

dispatch({
type: SET_SELECTED_TOOL,
payload: { selectedTool },
payload: { selectedTool: selectedTool || options.zoom.id },
});
},
[alert, dispatch, openPanel],
Expand Down

0 comments on commit ef718c7

Please sign in to comment.