Skip to content

Commit

Permalink
add withRouter for router push (#34122)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemeshvpatel authored Jan 16, 2025
1 parent fcc24d1 commit 0098df3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/applications/ask-va/containers/CategorySelectPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { focusElement } from 'platform/utilities/ui';
import PropTypes from 'prop-types';
import React, { useEffect, useState } from 'react';
import { connect, useDispatch } from 'react-redux';
import { withRouter } from 'react-router';
import FormNavButtons from '~/platform/forms-system/src/js/components/FormNavButtons';
import { setCategoryID } from '../actions';
import RequireSignInModal from '../components/RequireSignInModal';
Expand Down Expand Up @@ -141,4 +142,4 @@ function mapStateToProps(state) {
};
}

export default connect(mapStateToProps)(CategorySelectPage);
export default connect(mapStateToProps)(withRouter(CategorySelectPage));

0 comments on commit 0098df3

Please sign in to comment.