Danilo Bargen 7 лет назад
Родитель
Сommit
6ca4ffe11e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/directives/avatar.ts

+ 3 - 1
src/directives/avatar.ts

@@ -46,7 +46,9 @@ export default [
 
                 this.avatarExists = () => {
                     if (this.receiver.avatar === undefined
-                        || this.receiver.avatar[this.resolution] === undefined) {
+                        || this.receiver.avatar === null
+                        || this.receiver.avatar[this.resolution] === undefined
+                        || this.receiver.avatar[this.resolution] === null) {
                         return false;
                     }
                     this.isLoading = false;