Skip to content

Commit

Permalink
Adding checks for empty selfLink
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
  • Loading branch information
aleksfront committed Apr 3, 2023
1 parent b3477a4 commit 77e362f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "",
};
},
}];
Expand All @@ -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",
Expand Down

0 comments on commit 77e362f

Please sign in to comment.