Fix pictures without metadata information in post display

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-29 18:38:38 +02:00
parent 2c4af0d267
commit 081e87209b
2 changed files with 4 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ const DEFAULT_PICTURE = {
})
export default class LazyImageWrapper extends Vue {
@Prop({ required: true })
picture!: IMedia;
picture!: IMedia | null;
get pictureOrDefault(): Partial<IMedia> {
if (this.picture === null) {