We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59bde18 + 6f2fa1e commit 3027760Copy full SHA for 3027760
1 file changed
src/nodes/ImageView.vue
@@ -243,6 +243,9 @@ export default {
243
methods: {
244
async loadPreview() {
245
this.attachment = await this.$attachmentResolver.resolve(this.src)
246
+ if (!this.attachment.previewUrl) {
247
+ throw new Error('Attachment source was not resolved')
248
+ }
249
return new Promise((resolve, reject) => {
250
const img = new Image()
251
img.onload = async () => {
0 commit comments