mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Fix restore version in file preview [SCI-11253]
This commit is contained in:
parent
2d70773cda
commit
feface9141
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue