File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,6 @@ const Taxon = class Taxon extends Model {
206206 this . default_photo . url = util . fixHttps ( this . default_photo . url ) ;
207207 this . default_photo . medium_url = util . fixHttps ( this . default_photo . medium_url ) ;
208208 this . default_photo . square_url = util . fixHttps ( this . default_photo . square_url ) ;
209- if ( ! this . default_photo . id ) {
210- this . default_photo = null ;
211- }
212209 }
213210 if ( this . taxon_photos ) {
214211 _ . each ( this . taxon_photos , tp => {
@@ -523,7 +520,6 @@ const Taxon = class Taxon extends Model {
523520 static async preloadIntoTaxonPhotos ( taxa , options ) {
524521 options = options || { } ;
525522 const prepareTaxon = t => t . prepareForResponse ( options . localeOpts ) ;
526- // const taxonPhotos = _.flatten( _.map( taxa, t => t.taxon_photos ) );
527523 _ . each ( taxa , taxon => {
528524 _ . each ( taxon . taxon_photos , taxonPhoto => {
529525 if ( taxonPhoto . taxon_id === taxon . id ) {
You can’t perform that action at this time.
0 commit comments