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

chore: Fix spelling mistake in CRD type

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-10 10:22:04 -04:00
parent 7b57f0d52d
commit 05784f5dfe
2 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class NonInjectedCustomResources extends React.Component<Dependencies> {
const isNamespaced = crd.isNamespaced();
const extraColumns = crd.getPrinterColumns(false); // Cols with priority bigger than 0 are shown in details
const version = crd.getPreferedVersion();
const version = crd.getPreferredVersion();
return (
<TabLayout>

View File

@ -140,6 +140,13 @@ export class CustomResourceDefinition extends KubeObject<
return this.spec.scope;
}
getPreferredVersion(): CustomResourceDefinitionVersion {
return this.getPreferedVersion();
}
/**
* @deprecated Switch to using {@link getPreferredVersion} instead (which fixes the is a typo)
*/
getPreferedVersion(): CustomResourceDefinitionVersion {
const { apiVersion } = this;