mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
fix context decoding issue in Installed component (#563)
remove redundant code correct encode decode Co-authored-by: Aleksandr Cupacenko <alcu@danskebank.lt>
This commit is contained in:
committed by
GitHub
parent
3b0b44f392
commit
69fe906c7d
@@ -35,7 +35,7 @@ const PageLayout = () => {
|
||||
const SyncContext: React.FC = () => {
|
||||
const { context } = useParams();
|
||||
if (context) {
|
||||
apiService.setCluster(context);
|
||||
apiService.setCluster(decodeURIComponent(context));
|
||||
}
|
||||
|
||||
return <Outlet />;
|
||||
|
||||
@@ -21,7 +21,7 @@ function Installed() {
|
||||
|
||||
const handleClusterChange = (clusterName: string) => {
|
||||
navigate({
|
||||
pathname: `/${clusterName}/installed`,
|
||||
pathname: `/${encodeURIComponent(clusterName)}/installed`,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user