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:
parent
b3477a437e
commit
77e362f4b6
@ -94,9 +94,9 @@ const externalActions = ["open-link-in-browser"];
|
|||||||
|
|
||||||
const uiInteraction = [{
|
const uiInteraction = [{
|
||||||
id: "show-details",
|
id: "show-details",
|
||||||
getParams: (selfLink: unknown) => {
|
getParams: (selfLink: string) => {
|
||||||
return {
|
return {
|
||||||
kind: parseKubeApi(selfLink as string).resource,
|
kind: selfLink ? parseKubeApi(selfLink).resource : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
}];
|
}];
|
||||||
@ -105,7 +105,7 @@ const terminal = ["create-terminal-tab"];
|
|||||||
|
|
||||||
export type WhiteListItem =
|
export type WhiteListItem =
|
||||||
| string
|
| string
|
||||||
| { id: string; getParams: (...args: unknown[]) => AppEvent["params"] };
|
| { id: string; getParams: (...args: any[]) => AppEvent["params"] };
|
||||||
|
|
||||||
const telemetryWhiteListForFunctionsInjectable = getInjectable({
|
const telemetryWhiteListForFunctionsInjectable = getInjectable({
|
||||||
id: "telemetry-white-list-for-functions",
|
id: "telemetry-white-list-for-functions",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user