Skip to content

Commit

Permalink
Fix restore version in file preview [SCI-11253]
Browse files Browse the repository at this point in the history
  • Loading branch information
aignatov-bio committed Nov 13, 2024
1 parent 2d70773 commit feface9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
};
Expand Down

0 comments on commit feface9

Please sign in to comment.