Merge pull request #8038 from aignatov-bio/ai-sci-11253-fix-preview-update

Fix restore version in file preview [SCI-11253]
This commit is contained in:
aignatov-bio 2024-11-13 12:29:51 +01:00 committed by GitHub
commit abea4638d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
}
}
};