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]>
Signed-off-by: austin5219 <[email protected]>
  • Loading branch information
youhonglian authored and austin5219 committed Oct 16, 2024
1 parent dc5ee3f commit 15f797d
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 15f797d

Please sign in to comment.