Skip to content

Commit

Permalink
chore(content-explorer): migrate tests to react-testing-library
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and greg-in-a-box committed Jan 22, 2025
1 parent cb87cab commit d788473
Show file tree
Hide file tree
Showing 3 changed files with 661 additions and 157 deletions.
7 changes: 6 additions & 1 deletion src/elements/content-explorer/ContentExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,12 @@ class ContentExplorer extends Component<Props, State> {
thumbnailUrl,
};

if (item.type === TYPE_FILE && thumbnailUrl && !isThumbnailReady(newItem)) {
if (
item.type === TYPE_FILE &&
thumbnailUrl &&
!isThumbnailReady(newItem) &&
this.getViewMode() === VIEW_MODE_GRID
) {
this.attemptThumbnailGeneration(newItem);
}

Expand Down
Loading

0 comments on commit d788473

Please sign in to comment.