Merge pull request #4898 from kellykelly3/1266-thumbnail-viewer-bug

1266 CVT - Media tab doesn't update when switching selection
This commit is contained in:
Richard Cordovano 2019-06-19 12:16:48 -04:00 committed by GitHub
commit 5db5ac5c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,9 +130,7 @@ final class MediaViewer extends JPanel implements RelationshipsViewer, ExplorerM
logger.log(Level.WARNING, "Unable to update selection." , ex); logger.log(Level.WARNING, "Unable to update selection." , ex);
} }
if(artifactList.size() == 0) { thumbnailViewer.resetComponent();
thumbnailViewer.resetComponent();
}
thumbnailViewer.setNode(new TableFilterNode(new DataResultFilterNode(new AbstractNode(new AttachmentsChildren(artifactList)), tableEM), true, this.getClass().getName())); thumbnailViewer.setNode(new TableFilterNode(new DataResultFilterNode(new AbstractNode(new AttachmentsChildren(artifactList)), tableEM), true, this.getClass().getName()));
} }