Skip to content

Commit bbcf4e9

Browse files
PR changes
1 parent a03f8cf commit bbcf4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Graphs/graphUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getStatusCondition = (conditions?: Condition[]): Condition | undefi
1010

1111
export const resolveProviderTypeFromApiVersion = (apiVersion: string): string => {
1212
// Extract domain from apiVersion (e.g. "account.btp.sap.crossplane.io/v1alpha1" -> "account.btp.sap.crossplane.io")
13-
const domain = apiVersion.split('/')[0] || '';
13+
const domain = apiVersion?.split('/')[0] || '';
1414

1515
// Remove "account" to normalize provider names
1616
// e.g "account.btp.sap.crossplane.io" -> "btp.sap.crossplane.io"

0 commit comments

Comments
 (0)