1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

optimize starred.js (#5908)

Co-authored-by: wangjianhui <40563566+loveclever@users.noreply.github.com>
This commit is contained in:
WJH
2024-01-20 17:23:56 +08:00
committed by GitHub
parent 1ff199bf29
commit 2cd836c4df

View File

@@ -79,7 +79,7 @@ class TableBody extends Component {
getThumbnails() {
let items = this.state.items.filter((item) => {
return (Utils.imageCheck(item.obj_name) || (enableVideoThumbnail && Utils.videoCheck(item.obj_name))) && !item.repo_encrypted;
return (Utils.imageCheck(item.obj_name) || (enableVideoThumbnail && Utils.videoCheck(item.obj_name))) && !item.repo_encrypted && !item.encoded_thumbnail_src;
});
if (items.length == 0) {
return ;