From fb94c64c63179e8d6a9c3e2004227ea64d895169 Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Tue, 25 May 2021 18:37:31 +0200
Subject: [PATCH] PictureUpload fix

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/components/PictureUpload.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/src/components/PictureUpload.vue b/js/src/components/PictureUpload.vue
index 34a46ac3d..0b6c9eee9 100644
--- a/js/src/components/PictureUpload.vue
+++ b/js/src/components/PictureUpload.vue
@@ -152,7 +152,7 @@ export default class PictureUpload extends Vue {
         console.error(e);
       }
     }
-    return this.defaultImage ? this.defaultImage.url : null;
+    return this.defaultImage?.url;
   }
 
   onFileChanged(file: File | null): void {