Skip to content

Commit

Permalink
optimize starred.js (#5908)
Browse files Browse the repository at this point in the history
Co-authored-by: wangjianhui <[email protected]>
  • Loading branch information
likesclever and likesclever authored Jan 20, 2024
1 parent 1ff199b commit 2cd836c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/starred/starred.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

0 comments on commit 2cd836c

Please sign in to comment.