Skip to content

Commit c18a407

Browse files
committed
fix getextensibilitypath
1 parent a7f49ef commit c18a407

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Extensibility/helpers/getExtensibilityPath.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import pluralize from 'pluralize';
22

33
export const getExtensibilityPath = ({
44
urlPath,
5-
resource: { kind },
5+
resource,
66
}: {
77
urlPath?: string | undefined;
8-
resource: { kind: string };
9-
}) => urlPath ?? pluralize((kind ?? '').toLowerCase());
8+
resource?: { kind?: string | undefined };
9+
} = {}) => urlPath ?? pluralize((resource?.kind ?? '').toLowerCase());

tests/integration/tests/namespace/a-run-before.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
context('Create Namespace', () => {
44
Cypress.skipAfterFail({ skipAllSuits: true });
55

6-
before(cy.loginAndSelectCluster);
6+
before(() => cy.loginAndSelectCluster());
77

88
it('Create Namespace', () => {
99
cy.getLeftNav()

0 commit comments

Comments
 (0)