Skip to content

Commit d788473

Browse files
chore(content-explorer): migrate tests to react-testing-library
Co-Authored-By: [email protected] <[email protected]>
1 parent cb87cab commit d788473

File tree

3 files changed

+661
-157
lines changed

3 files changed

+661
-157
lines changed

src/elements/content-explorer/ContentExplorer.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,12 @@ class ContentExplorer extends Component<Props, State> {
876876
thumbnailUrl,
877877
};
878878

879-
if (item.type === TYPE_FILE && thumbnailUrl && !isThumbnailReady(newItem)) {
879+
if (
880+
item.type === TYPE_FILE &&
881+
thumbnailUrl &&
882+
!isThumbnailReady(newItem) &&
883+
this.getViewMode() === VIEW_MODE_GRID
884+
) {
880885
this.attemptThumbnailGeneration(newItem);
881886
}
882887

0 commit comments

Comments
 (0)