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 = [{
|
||||
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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user