1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix: Correct getEditSelfLinkFor to produce correct selfLink

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-04-20 16:01:51 -04:00
parent 3439472065
commit 456d6ae94f

View File

@ -71,11 +71,9 @@ function getEditSelfLinkFor(object: RawKubeObject): string | undefined {
const { apiVersionWithGroup, ...parsedApi } = parsedKubeApi;
parsedApi.apiVersion = lensVersionLabel;
return createKubeApiURL({
...parsedApi,
apiVersion: `${parsedApi.apiGroup}/${parsedApi.apiVersion}`,
apiVersion: lensVersionLabel,
});
}