Commit cbabacd1 authored by Ben Hayward's avatar Ben Hayward

Updated for feedback

1 merge request!531[Sprint/ModestMonkey](fix): Return void if there is no selected or deselected image
Pipeline #79790002 canceled with stages
in 56 seconds
......@@ -237,7 +237,7 @@ export class EmbedImage {
public selectImage(e) {
let $image = e.target;
if (!$image || $image.tagname) {
if (!$image || !$image.tagname) {
return;
}
......@@ -274,7 +274,7 @@ export class EmbedImage {
let $el = e.target,
$image = document.querySelector('.medium-insert-image-active');
if (!$image) {
if (!$el || !$el.tagname) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment