Update ImageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2020-08-16 19:10:02 +02:00
parent fae1238839
commit c932294859
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ var ImageUtilities = (_ => {
processImageModal (e) { processImageModal (e) {
if (clickedImage) e.instance.props.cachedImage = clickedImage; if (clickedImage) e.instance.props.cachedImage = clickedImage;
let src = e.instance.props.cachedImage && e.instance.props.cachedImage.src ? e.instance.props.cachedImage : e.instance.props.src; let src = e.instance.props.cachedImage && e.instance.props.cachedImage.src ? e.instance.props.cachedImage : e.instance.props.src;
src = src.src || src;
let messages = this.getMessageGroupOfImage(src); let messages = this.getMessageGroupOfImage(src);
if (e.returnvalue) { if (e.returnvalue) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.downloadlink]]}); let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.downloadlink]]});