Skip to content

Commit 1c263c2

Browse files
committed
fix undefined for resource and urlPath
1 parent 296d076 commit 1c263c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import pluralize from 'pluralize';
22

33
export const getExtensibilityPath = ({
4+
urlPath,
45
resource: { kind },
56
}: {
7+
urlPath?: string | undefined;
68
resource: { kind: string };
7-
}) => pluralize((kind ?? '').toLowerCase());
9+
}) => urlPath ?? pluralize((kind ?? '').toLowerCase());

0 commit comments

Comments
 (0)