Skip to content

Commit 618cb61

Browse files
committed
Fix issue where some pages dont re-render
Resolves an issue where viewing a debug session and then going back in history caused pages to stop re-rendering
1 parent dbfa198 commit 618cb61

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/dev_server/ui/dist/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

internal/dev_server/ui/src/RouteSelector.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import {
77
ListBoxItem,
88
} from '@launchpad-ui/components';
99
import { Icon } from '@launchpad-ui/icons';
10-
import { useNavigate, useLocation } from 'react-router';
10+
import { useLocation } from 'react-router';
1111
import { Fragment } from 'react';
1212

1313
const RouteSelector = () => {
14-
const navigate = useNavigate();
1514
const location = useLocation();
1615

1716
const options = [
@@ -25,7 +24,7 @@ const RouteSelector = () => {
2524

2625
const handleSelectionChange = (key: React.Key) => {
2726
if (typeof key === 'string') {
28-
navigate(key);
27+
window.location.href = key;
2928
}
3029
};
3130

0 commit comments

Comments
 (0)