Catch blurhash decoding errors

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-08-12 10:11:46 +02:00
parent 70bb3f3dd7
commit 1280b66f41
3 changed files with 13 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
</template>
<script lang="ts">
import { IMedia } from "@/types/media.model";
import { PropType } from "vue";
import { Component, Prop, Vue } from "vue-property-decorator";
import LazyImageWrapper from "../Image/LazyImageWrapper.vue";
@@ -14,7 +15,7 @@ import LazyImageWrapper from "../Image/LazyImageWrapper.vue";
},
})
export default class EventBanner extends Vue {
@Prop({ required: true, default: null })
@Prop({ required: true, default: null, type: Object as PropType<IMedia> })
picture!: IMedia | null;
}
</script>