mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: msg.from[0] is undefined
This commit is contained in:
parent
0b2e82f9ca
commit
c7f554d22b
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@
|
||||||
|
|
||||||
ko.bindingHandlers.fromPic = {
|
ko.bindingHandlers.fromPic = {
|
||||||
init: (element, self, dummy, msg) => {
|
init: (element, self, dummy, msg) => {
|
||||||
if (msg) {
|
if (msg?.from?.[0]) {
|
||||||
let url = getAvatar(msg),
|
let url = getAvatar(msg),
|
||||||
from = msg.from[0],
|
from = msg.from[0],
|
||||||
fn = url=>{element.src = url};
|
fn = url=>{element.src = url};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue