@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
update the null check to use the optional chaining operator in case of non-null assertion operator is not working in function extractInitials(values: string)
|
||||
@@ -28,5 +28,5 @@ export function stringToColor(str: string) {
|
||||
}
|
||||
|
||||
export function extractInitials(value: string) {
|
||||
return value.match(/\b\w/g)!.join('').substring(0, 2);
|
||||
return value.match(/\b\w/g)?.join('').substring(0, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user