Skip to content

Commit 0448190

Browse files
authored
Merge pull request finos#1433 from qube-rt/fix-dashboard-navigation
chore: push, don't overwrite history so browser works
2 parents 3872b14 + 0a25231 commit 0448190

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/ui/views/PushRequests/components/PushesTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const PushesTable: React.FC<PushesTableProps> = (props) => {
3535
const itemsPerPage = 5;
3636
const [searchTerm, setSearchTerm] = useState('');
3737

38-
const openPush = (pushId: string) => navigate(`/dashboard/push/${pushId}`, { replace: true });
38+
const openPush = (pushId: string) => navigate(`/dashboard/push/${pushId}`);
3939

4040
useEffect(() => {
4141
const query: any = {};

src/ui/views/RepoList/Components/Repositories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export default function Repositories(): React.ReactElement {
4444
const itemsPerPage: number = 5;
4545
const navigate = useNavigate();
4646
const { user } = useContext<UserContextType>(UserContext);
47-
const openRepo = (repoId: string): void =>
48-
navigate(`/dashboard/repo/${repoId}`, { replace: true });
47+
const openRepo = (repoId: string): void => navigate(`/dashboard/repo/${repoId}`);
4948

5049
useEffect(() => {
5150
const load = async () => {

src/ui/views/UserList/Components/UserList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const UserList: React.FC = () => {
3232
const itemsPerPage = 5;
3333
const [searchQuery, setSearchQuery] = useState<string>('');
3434

35-
const openUser = (username: string) => navigate(`/dashboard/user/${username}`, { replace: true });
35+
const openUser = (username: string) => navigate(`/dashboard/user/${username}`);
3636

3737
useEffect(() => {
3838
getUsers(setIsLoading, setUsers, setAuth, setErrorMessage);

0 commit comments

Comments
 (0)