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

Adding checks for empty selfLink

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-04-03 16:44:26 +03:00
parent b3477a437e
commit 77e362f4b6

View File

@ -94,9 +94,9 @@ const externalActions = ["open-link-in-browser"];
const uiInteraction = [{
id: "show-details",
getParams: (selfLink: unknown) => {
getParams: (selfLink: string) => {
return {
kind: parseKubeApi(selfLink as string).resource,
kind: selfLink ? parseKubeApi(selfLink).resource : "",
};
},
}];
@ -105,7 +105,7 @@ const terminal = ["create-terminal-tab"];
export type WhiteListItem =
| string
| { id: string; getParams: (...args: unknown[]) => AppEvent["params"] };
| { id: string; getParams: (...args: any[]) => AppEvent["params"] };
const telemetryWhiteListForFunctionsInjectable = getInjectable({
id: "telemetry-white-list-for-functions",