Skip to content

Commit

Permalink
fix useHistory navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
acosferreira committed May 8, 2023
1 parent 40895ad commit b8963ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/general-table/GeneralTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ const GeneralTable = ({
: useHistory
? useHistory()
: null;
const navigate = navigateProp ? navigateProp() : useNavigate();
const navigate = navigateProp
? navigateProp()
: useNavigate
? useNavigate()
: null;
const { pathname, search } = locationProp ? locationProp() : useLocation();

useEffect(() => {
Expand Down

0 comments on commit b8963ad

Please sign in to comment.