Skip to content

Commit

Permalink
Merge pull request #8038 from aignatov-bio/ai-sci-11253-fix-preview-u…
Browse files Browse the repository at this point in the history
…pdate

Fix restore version in file preview [SCI-11253]
  • Loading branch information
aignatov-bio authored Nov 13, 2024
2 parents 2d70773 + feface9 commit abea463
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 abea463

Please sign in to comment.