muffin-admin 9.2.3 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "9.2.3",
3
+ "version": "9.3.0",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -9,11 +9,11 @@ export function AvatarField({ source, alt, style, nameProp, ...props }) {
9
9
 
10
10
  const letters = name
11
11
  ? name
12
- .trim(" ")
13
- .split(/\s+/)
14
- .slice(0, 2)
15
- .map((n: string) => n[0].toUpperCase())
16
- .join("")
12
+ .trim(" ")
13
+ .split(/\s+/)
14
+ .slice(0, 2)
15
+ .map((n: string) => n[0]?.toUpperCase())
16
+ .join("")
17
17
  : ""
18
18
 
19
19
  return (
package/src/index.tsx CHANGED
@@ -36,4 +36,4 @@ export async function initAdmin(prefix = "", containerId: string = "root") {
36
36
  )
37
37
  }
38
38
 
39
- export const VERSION = "9.2.3"
39
+ export const VERSION = "9.3.0"