ThemeAttributes: Fix null handling (#3308)
This commit is contained in:
parent
d563b66842
commit
b980320d0a
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ export default definePlugin({
|
|||
}
|
||||
],
|
||||
|
||||
getAvatarStyles(src: string) {
|
||||
if (src.startsWith("data:")) return {};
|
||||
getAvatarStyles(src: string | null) {
|
||||
if (!src || src.startsWith("data:")) return {};
|
||||
|
||||
return Object.fromEntries(
|
||||
[128, 256, 512, 1024, 2048, 4096].map(size => [
|
||||
|
|
Loading…
Add table
Reference in a new issue