Skip to content

Commit

Permalink
fix(ui): history error reported in the dev environment (argoproj#20133)
Browse files Browse the repository at this point in the history
Signed-off-by: honglian.you <[email protected]>
  • Loading branch information
youhonglian authored Oct 7, 2024
1 parent 345c8a1 commit 20e2e78
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export const PodsLogsViewer = (props: PodLogsProps) => {
const logsContainerRef = useRef(null);

const setWithQueryParams = <T extends (val: any) => void>(key: string, cb: T) => {
history.replaceState(null, '', `${location.pathname}?${queryParams}`);

return (val => {
cb(val);
queryParams.set(key, val.toString());
Expand Down

0 comments on commit 20e2e78

Please sign in to comment.