Skip to content

Commit

Permalink
fix context decoding issue in Installed component (#563)
Browse files Browse the repository at this point in the history
remove redundant code

correct encode decode

Co-authored-by: Aleksandr Cupacenko <[email protected]>
  • Loading branch information
unitmatrix and Aleksandr Cupacenko authored Nov 26, 2024
1 parent 3b0b44f commit 69fe906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PageLayout = () => {
const SyncContext: React.FC = () => {
const { context } = useParams();
if (context) {
apiService.setCluster(context);
apiService.setCluster(decodeURIComponent(context));
}

return <Outlet />;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Installed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Installed() {

const handleClusterChange = (clusterName: string) => {
navigate({
pathname: `/${clusterName}/installed`,
pathname: `/${encodeURIComponent(clusterName)}/installed`,
});
};

Expand Down

0 comments on commit 69fe906

Please sign in to comment.