Check if lightbox url is available

This commit is contained in:
RMidhunSuresh 2022-07-05 17:55:51 +05:30
parent ff2129f36a
commit 8ec0bd7295

View file

@ -24,6 +24,6 @@ export class ImageView extends BaseMediaView {
title: vm => vm.label,
style: `max-width: ${vm.width}px; max-height: ${vm.height}px;`
});
return vm.isPending ? img : t.a({href: vm.lightboxUrl}, img);
return vm.isPending || !vm.lightboxUrl ? img : t.a({href: vm.lightboxUrl}, img);
}
}