Fix restore version in file preview [SCI-11253]

This commit is contained in:
Anton 2024-11-13 12:15:55 +01:00
parent 2d70773cda
commit feface9141

View file

@ -131,11 +131,11 @@ export default {
document.getElementById('editImageButton').click();
},
refreshPreview() {
const imageElement = document.querySelector('.file-preview-container .asset-image');
const filePreview = document.querySelector('.file-preview-container');
if (!imageElement) return;
if (!filePreview) return;
$('#filePreviewModal').modal('hide');
window.location.reload();
}
}
};